コード例 #1
0
    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");
    }
コード例 #2
0
 public void OnEnable()
 {
     faceEffectManagerInstance = GameObject.FindObjectOfType <TikTokBopFaceEffectManager>();
     Debug.Log("face effect manager instance is set");
 }