Esempio n. 1
0
 void Awake()
 {
     _movementControl = this.GetComponent <IMovementController>();
     _weaponSystem    = this.GetComponent <IWeaponSystem>();
     _weaponFire      = this.GetComponent <IWeaponFire>();
     _cameraControl   = this.GetComponent <ICameraControl>();
 }
Esempio n. 2
0
    private void Start()
    {
        healthBar = GetComponent <IHealth>();
        input     = GetComponent <ICharacterInput>();
        weapon    = GetComponent <IWeaponFire>();

        healthBar.MaxHealth(MaxHealth);
    }
Esempio n. 3
0
    private void Awake()
    {
        MaxHealth = 5;
        Health    = MaxHealth;
        onFire   += SpawnBomb;

        input     = GetComponent <ICharacterInput>();
        weapon    = GetComponent <IWeaponFire>();
        healthBar = GetComponent <IHealth>();
        healthBar.MaxHealth(MaxHealth);
    }