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; }
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); }