private void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
            return;
        }

        Debug.Log("levAwake");
        instance = this;
    }
Esempio n. 2
0
 private void Awake()
 {
     Debug.Log("finAwake");
     main = GetComponent <scr_leviathan>();
 }