How to walk on walls in Unity 2D game?

Hi Everyone! I’m very new to “Unity” and the game development as a whole. I’m watching now tutorials and reading documentation but I’m still unable to make simple object to crawl on the curved surface (walls and etc.) in 2D game.

Here is the image of what I’m trying to achieve.alt text

I’ve seen the similar questions:

But again I’m still unable to compile them to some suitable solution. All of them puzzled my source code in the end. If someone have a minute to explain me how to do it on the simple project please share your wisdom. I’ve created the simple project just for this purpose. Here it is: [27077-crawlwalls.zip|27077].

There is a CrawlerBehaviour.cs script which is responsible for character behavior. Now it’s only moving character forward. Please help me to complete it for the crawling of character.

using UnityEngine;
using System.Collections;

public class CrawlerBehaviour : MonoBehaviour {

	public float moveSpeed = .2f;

	void Start () {
	}
	
	void Update () {
	}

	void FixedUpdate () {
		rigidbody2D.velocity = new Vector2(transform.localScale.x * moveSpeed, rigidbody2D.velocity.y);
	}

}

OK. If you want something done, do it yourself. The solution is available on the github project I’ve mentioned above.