void Awake()
 {
     if (S == null)
     {
         S = this;
     }
     else if (S != null)
     {
         Destroy(this);
     }
 }
예제 #2
0
        public string addReport(string itemID, string reason)
        {
            string id = getID();

            if (id == null)
            {
                return(itemID);
            }
            AccusationManager.itemAccusation(id, itemID, reason);
            return(itemID);
        }
예제 #3
0
    void Awake()
    {
        if (S == null)
        {
            S = this;
        }
        else if (S != null)
        {
            Destroy(this);
        }

        DontDestroyOnLoad(gameObject);
        //For now, needs to be inactive so that it can find things OnEnable
        gameObject.SetActive(false);
    }