void Awake() { hideGrid |= hideOnPlay; if (renderMaterial == null) { renderMaterial = defaultRenderMaterial; } GFGridRenderManager.AddGrid(this); }
void Awake() { if (hideOnPlay) { hideGrid = true; } if (renderMaterial == null) { renderMaterial = defaultRenderMaterial; } GFGridRenderManager.AddGrid(this); }
void OnDestroy() { GFGridRenderManager.RemoveGrid(GetComponent <GFGrid>()); }