public static SgtCloudsphereModel Create(SgtCloudsphere cloudsphere) { var model = SgtComponentPool <SgtCloudsphereModel> .Pop("Model", cloudsphere.gameObject.layer, cloudsphere.transform); model.Cloudsphere = cloudsphere; return(model); }
public static SgtCloudsphereModel Create(SgtCloudsphere cloudsphere) { var model = SgtComponentPool<SgtCloudsphereModel>.Pop("Model", cloudsphere.transform); model.Cloudsphere = cloudsphere; return model; }
protected virtual void Start() { if (startCalled == false) { startCalled = true; if (Cloudsphere == null) { Cloudsphere = GetComponent <SgtCloudsphere>(); } CheckUpdateCalls(); } }