private void Start() { anim = this.GetComponentInChildren <Animator>(); //test = Camera.main.transform.position.z; Player = GameObject.Find("Player"); Rotate = GetComponent <PlayerRotate>(); Turn = GetComponent <FaceCursor>(); Turn.enabled = false; gameObject.transform.position = new Vector3(0, 0, 0); }
// Use this for initialization private void Start() { _rigidBody = GetComponent <Rigidbody2D>(); _faceCursor = GetComponent <FaceCursor>(); }