void OnClickTiaoGuoBt() { XKGlobalData.GetInstance().PlayStartBtAudio(); HiddenTiaoGuoBt(); if (!JiFenJieMianCtrl.GetInstance().GetIsShowFinishTask()) { if (Network.peerType != NetworkPeerType.Server) { XKTriggerEndCartoon.GetInstance().CloseStartCartoon(); } } /*else { * JiFenJieMianCtrl.GetInstance().StopJiFenTime(); * }*/ }
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); }
[RPC] void NetCtrlMakeOtherPortCloseCartoon() { IsMakeGameCloseCartoon = true; XKTriggerEndCartoon.GetInstance().CloseStartCartoon(); }