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