示例#1
0
 void Start()
 {
     avatar    = GameManager.Instance.GetPlayer().GetComponent <PlayerAvatar>();
     maxHealth = avatar.GetMaxHealth();
     bulletGun = avatar.GetComponent <BulletGun>();
     maxEnergy = bulletGun.GetMaxEnergy();
 }