// 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); }
public void SetParent(PlayerPartyController p) { this.parent = p; }