protected override void Initialize() { base.Initialize(); isDead = false; currentLives = defaultLives; colorChanger = GetComponent <PlayerColorChanger> (); GlobalControl.Instance.pHUD.GetComponent <HUDManager>().UpdateLiveText(currentLives); }
// Use this for initialization void Start() { rb = GetComponent <Rigidbody>(); colorChanger = GetComponent <PlayerColorChanger>(); acceleration = 10f; maxSpeed = 30f; deceleration = 2f; shotCooldown = 0.5f; readyToShoot = true; }
private void Start() { ColorChanger = new PlayerColorChanger(); Control(); }