protected void StartSubAttackAction() { if (subAttackAction != null) { subAttackAction.Start(); } }
public void VFXUsingPrefab() { AnimeAction action = BattleVFXAction.CreateWithPrefab(vfxPrefab, "Fire", enemy2); //action action.Start(); }
public void PlayerAttack() { // SubAction AnimeAction subAction = BattleVFXAction.CreateWithPrefab(vfxPrefab, "Fire", enemy2); AnimeAction attackAction = CharAttackAction.Create(player, subAction); attackAction.Start(); }
public void StartAction(AnimeAction action) { if (action == null) { return; } action.SetManager(this); action.Start(); mActionList.Add(action); }
protected void PopPendingAction() { if (mPendingList.Count == 0) { return; // Prevent out-of-bound problem! } mActiveAction = mPendingList[0]; mPendingList.RemoveAt(0); if (mActiveAction != null) { mActiveAction.Start(); } }
protected void AddSubAction(AnimeAction action) { action.SetManager(mManager); action.Start(); mSubActionList.Add(action); }