private void Start() { #if !UNITY_EDITOR try { #endif if (null == Grid) { Grid = gameObject.GetComponent <UIGridSimple>(); } if (null == Grid || null == BackGround) { Logger.Error("CutGridBackGround cant find background or grid"); NGUITools.Destroy(this); return; } Tick(); #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); } #endif }