Exemple #1
0
    void activate(ActivateEnemiesEvent e)
    {
        if (!active)
        {
            if (seq == null) // first activate
            {
                seq = action.Sequence();
                seq.Call(Stage1);
            }
            else
            {
                seq.Resume();
            }

            active = true;
        }
    }
Exemple #2
0
    int activate(ActivateEnemiesEvent e)
    {
        if (!active)
        {
            if (seq == null && seq1 == null) // first activate
            {
                seq  = action.Sequence();
                seq1 = action.Sequence();
                seq.Call(Stage1);
                seq1.Call(Report);
            }
            else
            {
                seq.Resume();
                seq1.Resume();
            }

            active = true;
        }
        return(0);
    }