private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Example #2
0
    void OnEnable()
    {
        gameManager = Sc_GMng.instance;
        if (Sc_GMng.instance == null)
        {
            //Debug.Log("test null");
        }

        //CheckState 코루틴 함수 실행
        StartCoroutine(CheckState());
        //Action 코루틴 함수 실행
        StartCoroutine(Action());
    }