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; } }
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; }
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); } }