Ejemplo n.º 1
0
 public override void FireEvent(BaseEventActivator activator)
 {
     if (Spawner == null)
     {
         Spawner = GetComponent <ActiveObjectsSpawner>();
     }
     if (Spawner != null)
     {
         Spawner.ResetSpawner();
         Spawner.Spawn();
     }
 }
Ejemplo n.º 2
0
 public override void FireEvent(BaseEventActivator activator)
 {
     if (StatNames.Length != StatValues.Length)
     {
         Debug.LogError("Invalid arrays in EventCharStateChange of:" + name);
     }
     else
     {
         Characters.BaseCharacter theChar = CharacterObject == null ? CharactersModuleManager.Instance.ThePlayer : CharacterObject.TheCharacter;
         for (int i = 0; i < StatNames.Length; i++)
         {
             theChar.SetSkillValue(StatNames[i], float.Parse(StatValues[i]));
         }
     }
 }
Ejemplo n.º 3
0
 public abstract void FireEvent(BaseEventActivator activator);