initializeIfNecessary() private method

private initializeIfNecessary ( ) : void
return void
Example #1
0
 public static CellControl get() {
     if (_instance == null)
     {
         _instance = GameObject.Find(gameObjectName).GetComponent<CellControl>();
         if(null != _instance)
         {
             _instance.initializeIfNecessary();
         }
         else
         {
             Logger.Log("CellControl::get couldn't find game object", Logger.Level.ERROR);
         }
     }
     return _instance;
 }
Example #2
0
 public static CellControl get()
 {
     if (_instance == null)
     {
         _instance = GameObject.Find(gameObjectName).GetComponent <CellControl>();
         if (null != _instance)
         {
             _instance.initializeIfNecessary();
         }
         else
         {
             Logger.Log("CellControl::get couldn't find game object", Logger.Level.ERROR);
         }
     }
     return(_instance);
 }