Ejemplo n.º 1
0
 protected void StartSubAttackAction()
 {
     if (subAttackAction != null)
     {
         subAttackAction.Start();
     }
 }
Ejemplo n.º 2
0
    public void VFXUsingPrefab()
    {
        AnimeAction action = BattleVFXAction.CreateWithPrefab(vfxPrefab, "Fire", enemy2);

        //action
        action.Start();
    }
Ejemplo n.º 3
0
    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);
    }
Ejemplo n.º 5
0
    protected void PopPendingAction()
    {
        if (mPendingList.Count == 0)
        {
            return;                     // Prevent out-of-bound problem!
        }
        mActiveAction = mPendingList[0];
        mPendingList.RemoveAt(0);

        if (mActiveAction != null)
        {
            mActiveAction.Start();
        }
    }
Ejemplo n.º 6
0
 protected void AddSubAction(AnimeAction action)
 {
     action.SetManager(mManager);
     action.Start();
     mSubActionList.Add(action);
 }