示例#1
0
 void Start()
 {
     status = GetComponent<CharStatus> ();
     jump = GetComponent<CharJump> ();
     rigidBody2D = GetComponent<Rigidbody2D> ();
     input = GameObject.Find ("InputManager").GetComponent<InputManager> ();
 }
 void Start()
 {
     jump = GameObject.Find ("Char").GetComponent<CharJump> ();
 }