void Awake()
 {
     if (s_instance == null) {
         s_instance = this;
     }
     else {
         Destroy(gameObject);
         Debug.LogWarning( "Deleting "+ gameObject.name +" because it is a duplicate TrimManager." );
     }
 }
Example #2
0
 void Awake()
 {
     if (s_instance == null)
     {
         s_instance = this;
     }
     else
     {
         Destroy(gameObject);
         Debug.LogWarning("Deleting " + gameObject.name + " because it is a duplicate TrimManager.");
     }
 }
Example #3
0
 protected EntitiesContext()
 {
     Manager = new TrimManager(this);
     Matcher = new MatcherManager(Manager);
 }