void Awake() { _movementControl = this.GetComponent <IMovementController>(); _weaponSystem = this.GetComponent <IWeaponSystem>(); _weaponFire = this.GetComponent <IWeaponFire>(); _cameraControl = this.GetComponent <ICameraControl>(); }
private void Start() { healthBar = GetComponent <IHealth>(); input = GetComponent <ICharacterInput>(); weapon = GetComponent <IWeaponFire>(); healthBar.MaxHealth(MaxHealth); }
private void Awake() { MaxHealth = 5; Health = MaxHealth; onFire += SpawnBomb; input = GetComponent <ICharacterInput>(); weapon = GetComponent <IWeaponFire>(); healthBar = GetComponent <IHealth>(); healthBar.MaxHealth(MaxHealth); }