// Use this for initialization void Start() { initY = transform.position.y; speedC = GameObject.Find("GvrMain").GetComponent <SpeedControl>(); obsC = GameObject.Find("GvrMain").GetComponent <ObstacleControl>(); moveC = GameObject.Find("GvrMain").GetComponent <MoveNew> (); }
// Use this for initialization void Start() { Physics.gravity = new Vector3(0, 0, 0); speed = v0; moveC = GameObject.Find("GvrMain").GetComponent <MoveNew> (); }