|
|
@@ -6,11 +6,11 @@ using UnityEngine.SceneManagement;
|
|
|
public class PKGameOptionView : MonoBehaviour
|
|
|
{
|
|
|
void Start() {
|
|
|
- HomeMgr.ins.CacheView(this);
|
|
|
+ HomeMgr.CacheView(this);
|
|
|
}
|
|
|
|
|
|
void OnDestroy() {
|
|
|
- HomeMgr.ins.RemoveCacheView(this);
|
|
|
+ HomeMgr.RemoveCacheView(this);
|
|
|
}
|
|
|
|
|
|
public void GoTo(string target) {
|
|
|
@@ -18,6 +18,7 @@ public class PKGameOptionView : MonoBehaviour
|
|
|
switch (target)
|
|
|
{
|
|
|
case "双人闯关":
|
|
|
+ if (GlobalData.pkMatchType == PKMatchType.OnlinePK) return;
|
|
|
GameObject.Instantiate(Resources.Load<GameObject>("Prefabs/Views/ChallengeOptionView"));
|
|
|
break;
|
|
|
case "静止靶":
|