コード例 #1
0
    void OnDisable()
    {
        PilotStatsGUI g = gameObject.GetComponent <PilotStatsGUI>();

        if (g != null)
        {
            g.ShowPilotLevel = true;
        }
    }
コード例 #2
0
    void OnEnable()
    {
        mTransition.Start();
        PilotStatsGUI g = gameObject.GetComponent <PilotStatsGUI>();

        if (g != null)
        {
            g.ShowPilotLevel = false;
        }
    }