Beispiel #1
0
    // Use this for initialization
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);

        //uncomment this out if you're done testing
        //gameObject.SetActive(false);
    }
Beispiel #2
0
 public void SetParent(PlayerPartyController p)
 {
     this.parent = p;
 }