Example #1
0
 public void OnApplicationQuit()
 {
     if (gate != null)
     {
         gate.ExitGate();
     }
     gate = null;
 }
Example #2
0
    public void ChangeGate(UGate g)
    {
        if (gate != null)
        {
            gate.ExitGate();
        }

        gate = null;
        next = g;
    }
Example #3
0
    void Update()
    {
        if (next != null)
        {
            gate = next;
            gate.JoinGate();
            next = null;
        }
        if (gate == null)
        {
            return;
        }

        gate.Tick();
        #if UNITY_EDITOR
        if (gate != null)
        {
            GateName = gate.GetType().Name;
        }
        #endif
    }