void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerInfo>(); stone = this.GetComponent <StoneInfo>(); grid = GameObject.Find("Game Grid").GetComponent <GridManager4>(); }
void Start() { canClick = true; GameObject[] ices = GameObject.FindGameObjectsWithTag("Ice"); playerInfo = this.GetComponent <PlayerInfo>(); gridManagerInfo = GameObject.Find("Game Grid").GetComponent <GridManager4>(); arrow = GameObject.Find("ArrowClick").GetComponent <ArrowClick>(); icesThatCanClick(); }