initializeIfNecessary() приватный Метод

private initializeIfNecessary ( ) : void
Результат void
Пример #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;
 }
Пример #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);
 }