예제 #1
0
 private void OnGUI()
 {
     if (GUI.Button(FxmReplayDemo.GetButtonRect(0), "Replay"))
     {
         this.Replay(false);
     }
     if (GUI.Button(FxmReplayDemo.GetButtonRect(1), "Replay(ClearParticle)"))
     {
         this.Replay(true);
     }
 }
예제 #2
0
    public static void SetActiveRecursively(GameObject target, bool bActive)
    {
        int num = target.transform.childCount - 1;

        while (0 <= num)
        {
            if (num < target.transform.childCount)
            {
                FxmReplayDemo.SetActiveRecursively(target.transform.GetChild(num).gameObject, bActive);
            }
            num--;
        }
        target.SetActive(bActive);
    }