/// <summary> /// 设置卡组名称 /// </summary> public void InitInfo(string cardCroupName, CardGroupScript cardGroupScript = null, GuessFirstSceneScript guessFirstSceneScript = null) { this.cardCroupName = cardCroupName; nameText.text = cardCroupName; this.cardGroupScript = cardGroupScript; this.guessFirstSceneScript = guessFirstSceneScript; //当是猜先场景使用时隐藏编辑和删除按钮 if (guessFirstSceneScript != null) { gameObject.transform.GetChild(1).gameObject.SetActive(false); gameObject.transform.GetChild(2).gameObject.SetActive(false); } }
public void OpponentSelectFirstOrBack(bool selectFirstOrBack) { GuessFirstSceneScript guessFirstSceneScript = GameObject.Find("Main Camera").GetComponent <GuessFirstSceneScript>(); SetFirst(!selectFirstOrBack); TimerFunction timeFunction = new TimerFunction(); timeFunction.SetFunction(1, () => { GameManager.GetSingleInstance().EnterDuelScene(); }); GameManager.AddTimerFunction(timeFunction); guessFirstSceneScript.HideSelectFirstPanel(); }
void Start() { guessFirstSceneScript = GameObject.Find("Main Camera").GetComponent <GuessFirstSceneScript>(); }