コード例 #1
0
ファイル: CommandData.cs プロジェクト: dorog/onlab
    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>();
    }
コード例 #2
0
 protected virtual void InitSlot()
 {
     cmdpanelmanager = CommandPanel.GetCommandPanel();
     if (cmdpanelmanager == null)
     {
         Debug.LogError("Slot: CommandPanel is null!");
     }
 }
コード例 #3
0
ファイル: FinishMap.cs プロジェクト: dorog/onlab
 void Start()
 {
     ActualMapData.HawNewItem = false;
     commandPanel             = CommandPanel.GetCommandPanel();
     if (commandPanel == null)
     {
         Debug.Log("FinisMap: CommandPanel is null!");
     }
 }
コード例 #4
0
ファイル: DeleteChilds.cs プロジェクト: dorog/onlab
 private void Start()
 {
     commandPanel = CommandPanel.GetCommandPanel();
 }