Esempio n. 1
0
    void Awake()
    {
        timeLeftBeforeFire = shipConfigurationComponent.fireSpeed;

        if (abilitySetupComponent == null)
        {
            abilitySetupComponent = GetComponent <AbilitySetupComponent>();
        }
        abilitySetupComponent.GetAbilitiesWhenInstantiated(SetupDependencies);

        if (shipConfigurationComponent == null)
        {
            shipConfigurationComponent = GetComponent <AIShipConfigurationComponent>();
        }
    }
Esempio n. 2
0
 void Awake()
 {
     abilitySetupComponent = GetComponent <AbilitySetupComponent>();
     abilitySetupComponent.GetAbilitiesWhenInstantiated(SetupAbilities);
 }