示例#1
0
 private void Awake()
 {
     pushButton      = new PushButton();
     jetPack         = Player.GetComponent <PlayerJetPack>();
     playerRigidBody = Player.GetComponent <Rigidbody2D>();
 }
 // Start is called before the first frame update
 void Awake()
 {
     playerJet       = GetComponent <PlayerJetPack>();
     playerRigidBody = GetComponent <Rigidbody2D>();
 }