示例#1
0
    public bool clipExecuted = false;     //the user shouldn't author this, the Mixer does

    public bool ConditionMet()
    {
        switch (condition)
        {
        case Condition.Always:
            return(true);

        case Condition.PlatoonIsAlive:
            //The Timeline will jump to the label or time if a specific Platoon still has at least 1 unit alive
            if (platoon != null)
            {
                return(!platoon.CheckIfAllDead());
            }
            else
            {
                return(false);
            }

        case Condition.Never:
        default:
            return(false);
        }
    }