Beispiel #1
0
    void Awake()
    {
        worm = new GameObject().transform;
        worm.SetParent(transform);
        worm.name = "worm";

        mInstance = this;
    }
Beispiel #2
0
 void Awake()
 {
     Me = this;
     GameObject.DontDestroyOnLoad(this.gameObject);
 }