void Start() { cmdPanel = CommandPanel.GetCommandPanel(); #if UNITY_ANDROID GameObject[] cmdpanels = GameObject.FindGameObjectsWithTag(cmdPanelAndroidStr); #else GameObject[] cmdpanels = GameObject.FindGameObjectsWithTag(cmdPanelWindowsStr); #endif if (cmdpanels.Length > 1) { #if UNITY_ANDROID Debug.LogWarning("CommandData: There are more than one CommandPanel with " + cmdPanelAndroidStr + " tag, functions may won't work fine!"); #else Debug.LogWarning("CommandData: There are more than one CommandPanel with " + cmdPanelWindowsStr + " tag, functions may won't work fine!"); #endif } else if (cmdpanels.Length == 0) { Debug.LogError("CommandData: There are no CommandPanel"); } if (cmdpanels.Length > 0) { cmdpanel = cmdpanels[0]; } CmdPanelSlot = Command.PanelSlot; canvasGroup = GetComponent <CanvasGroup>(); }
protected virtual void InitSlot() { cmdpanelmanager = CommandPanel.GetCommandPanel(); if (cmdpanelmanager == null) { Debug.LogError("Slot: CommandPanel is null!"); } }
void Start() { ActualMapData.HawNewItem = false; commandPanel = CommandPanel.GetCommandPanel(); if (commandPanel == null) { Debug.Log("FinisMap: CommandPanel is null!"); } }
private void Start() { commandPanel = CommandPanel.GetCommandPanel(); }