コード例 #1
0
        void Unload()
        {
            var objects = UnityEngine.Object.FindObjectsOfType <BagRotator>();

            if (objects != null)
            {
                foreach (var obj in objects)
                {
                    UnityEngine.Object.Destroy(obj);
                }
            }
            instance = null;
        }
コード例 #2
0
 void OnServerInitialized()
 {
     instance = this;
     LoadVariables();
     initialized = true;
 }