Answers for "dontdestroyonload script"

0

dontdestroyonload script

GameObject[] objs = GameObject.FindGameObjectsWithTag("music");

        if (objs.Length > 1)
        {
            Destroy(this.gameObject);
        }

        DontDestroyOnLoad(this.gameObject);
Posted by: Guest on April-25-2021

Browse Popular Code Answers by Language