How can I make the screen move in a simple 2d ios game, where you mustnt move lift your finger, basically like mmm fingers for ios. thanks!
Here is how to make the screen to go up:
using UnityEngine;
using System.Collections;
public class movedown : MonoBehaviour {
float speed = 10.0f;
void Update ()
{
transform.Translate (Vector2.up * speed * Time.deltaTime);
}
}
And here is a link to make the finger on touch screen:
Only go to the part where you touch the screen.
Good Luck!