예제 #1
0
    //public void OnGUI()
    //{
    //    int nbTwippies = GetAll<Twippie>().Count;
    //    GUI.Label(new Rect(Screen.width / 2 - 50, 10, 100, 20), "Twippies : " + nbTwippies.ToString());
    //}

    public void AddObject(ManageableObjet obj)
    {
        if (AllObjects.Contains(obj))
        {
            return;
        }

        AllObjects.Add(obj);
        //Debug.Log(obj.name + " ajouté à la liste globale");
    }
예제 #2
0
 public bool Contains(Base obj)
 {
     return(AllObjects.Contains(obj));
 }