private void Start() { gameState = GetComponent <PhotonGameState>(); endUI = GameObject.Find("Canvas").transform.Find("EndUI").gameObject; resultText = GameObject.Find("Canvas").transform.Find("EndUI").Find("Text").GetComponent <Text>(); endUIBackgroundColor = GameObject.Find("Canvas").transform.Find("EndUI").Find("Image").GetComponent <Image>(); StartCoroutine("Ending"); }
private List <SubmittedInfo> otherPlayerSubmit; //상대의 카드 제출 현황참조 private void Start() { player = GameObject.Find("Player").GetComponent <PhotonPlayer>(); playerInput = GameObject.Find("Player").GetComponent <PlayerInput>(); gameState = GetComponent <PhotonGameState>(); StartCoroutine("Timer"); StartCoroutine("OtherPlayerUpdate"); }
private void Start() { readyButton = GameObject.Find("ReadyButton").GetComponent <Button>(); readyButton.onClick.AddListener(OnReadyButtonCliked); otherPlayerGameObjects = new List <GameObject>(); photonPlayer = GameObject.Find("Player").GetComponent <PhotonPlayer>(); gameState = GetComponent <PhotonGameState>(); StartCoroutine("OtherPlayerView"); }
private void Start() { otherPlayerCards = new List <SubmittedInfo>(); gameState = GameObject.Find("GameState").GetComponent <PhotonGameState>(); pv = GetComponent <PhotonView>(); StartCoroutine("HandState"); if (!PhotonNetwork.IsMasterClient)//masterclient만이 deck을 관리함 { return; } deck = GameObject.Find("Deck").GetComponent <PhotonDeck>(); }
private PhotonPlayer player;//masterclient only private void Start() { gameState = GetComponent <PhotonGameState>(); player = GameObject.Find("Player").GetComponent <PhotonPlayer>(); StartCoroutine("Processing"); }
private void Start() { gameState = GameObject.Find("GameState").GetComponent <PhotonGameState>(); player = GetComponent <PhotonPlayer>(); }