private void Start() { if (instance != null && instance != this) { Destroy(this.gameObject); } instance = this; Debug.Log("Instance " + instance); DontDestroyOnLoad(this.gameObject); Debug.Log("Starting face effect"); }
public void OnEnable() { faceEffectManagerInstance = GameObject.FindObjectOfType <TikTokBopFaceEffectManager>(); Debug.Log("face effect manager instance is set"); }