// Use this for initialization void Awake() { BlueStart = true; BlueDieOrClear = true; BlueAlive = true; ReverseCount = 0; popup.gameObject.SetActive(true); popuptextmanager = GameObject.Find("PopupTotalText").GetComponent <PopupCoinTextManager>(); popuptextmanager = GameObject.Find("PopupCoinText").GetComponent <PopupCoinTextManager>(); popup.gameObject.SetActive(false); textmanager = GameObject.Find("CoinText").GetComponent <TextManager>(); ButtonManager.Blue += blues; blueManAnimator = blueMan.GetComponent <Animator>(); BlueHidePortal = GameObject.Find("BluePortalObject"); //BlueHidePortal초기화 }
// Use this for initialization void Awake() { ReverseCount = 0; RedStart = true; RedAlive = true; onetimeclear = false; RedMove.AllAlive = true; clearSt = false; DieCheck = 0; RedDieOrClear = true; popup.gameObject.SetActive(true); popuptextmanager = GameObject.Find("PopupTotalText").GetComponent <PopupCoinTextManager>(); popuptextmanager = GameObject.Find("PopupCoinText").GetComponent <PopupCoinTextManager>(); popup.gameObject.SetActive(false); textmanager = GameObject.Find("CoinText").GetComponent <TextManager>(); RedHidePortal = GameObject.Find("RedPortalObject"); ButtonManager.Red += reds; redManAnimator = redMan.GetComponent <Animator>(); ButtonManager.RedWallCheck = true; //왼쪽 벽 ButtonManager.BlueWallCheck = false; //오른쪽 벽 }