示例#1
0
 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);
 }
示例#2
0
 // Use this for initialization
 private void Start()
 {
     _rigidBody  = GetComponent <Rigidbody2D>();
     _faceCursor = GetComponent <FaceCursor>();
 }