コード例 #1
0
    void OnClickTiaoGuoBt()
    {
        XKGlobalData.GetInstance().PlayStartBtAudio();
        HiddenTiaoGuoBt();
        if (!JiFenJieMianCtrl.GetInstance().GetIsShowFinishTask())
        {
            if (Network.peerType != NetworkPeerType.Server)
            {
                XKTriggerEndCartoon.GetInstance().CloseStartCartoon();
            }
        }

        /*else {
         *      JiFenJieMianCtrl.GetInstance().StopJiFenTime();
         * }*/
    }
コード例 #2
0
    void Awake()
    {
        _Instance = this;

        bool isOutputError = false;
        int  max           = SpawnArray.Length;

        for (int i = 0; i < max; i++)
        {
            if (SpawnArray[i] == null)
            {
                Debug.LogWarning("SpawnArray was wrong! index = " + i);
                isOutputError = true;
                break;
            }
        }

        max = RemoveArray.Length;
        for (int i = 0; i < max; i++)
        {
            if (RemoveArray[i] == null)
            {
                Debug.LogWarning("RemoveArray was wrong! index = " + i);
                isOutputError = true;
                break;
            }
            XkGameCtrl.AddCartoonTriggerSpawnList(RemoveArray[i]);
        }

        if (isOutputError)
        {
            GameObject obj = null;
            obj.name = "null";
        }
        XkGameCtrl.GetInstance().ChangeBoxColliderSize(transform);
    }
コード例 #3
0
 [RPC] void NetCtrlMakeOtherPortCloseCartoon()
 {
     IsMakeGameCloseCartoon = true;
     XKTriggerEndCartoon.GetInstance().CloseStartCartoon();
 }