Esempio n. 1
0
 internal int Start(UnitManager source, Vector3 targetPos, ref AbilityPhase current)
 {
     source.TriggerAnimation (animation);
     source.InstantiateVFX (vfx, vfxPosition, vfxRotation);
     source.PlaySFX (sfx, volume);
     foreach (SerializableEffect e in selfEffects) {
         e.Execute (source, source, targetPos);
     }
     foreach (SerializableEffect e in targetEffects) {
         e.Execute (source, null, targetPos);
     }
     current = this;
     return setFlags;
 }