private void OnTriggerEnter()
    {
        switch (triggerType)
        {
        case TriggerType.setOnEnterOnly:
        case TriggerType.setOnEnterClearOnExit:
            efs.SetFlag(flagNum);
            break;

        case TriggerType.clearOnEnterOnly:
        case TriggerType.setOnExitClearOnEnter:
            efs.ClearFlag(flagNum);
            break;
        }
    }
Esempio n. 2
0
    public void StartSong0()
    {
        Debug.Log("attempting to start song 0");
        // clear the flag
        efs.ClearFlag(BASE_FLAG + 0);

        srcs[currSong].mute = true;

        srcs[0].mute = false;

        currSong = 0;
    }
Esempio n. 3
0
    public void OnFlagSet()
    {
        if (efs.FlagStatus(resultFlagNum))
        {
            return;
        }

        // check all test flags
        bool done = true;

        for (int i = 0; i < testFlagNums.Length; i++)
        {
            done = done && efs.FlagStatus(testFlagNums[i]);
        }

        if (done)
        {
            efs.ClearFlag(resultFlagNum);
        }
    }