GameObject PopSquare(Vector3 pos, Quaternion rot, bool isTarget, Color color) { var square = SquareContainer.GetSquare(); square.Pop(pos, rot, isTarget, color); return(square.gameObject); }
void Awake() { SquareContainer.ForEach(square => { square.player = player; square.resultReceiver = resultReceiver; square.Hide(); }); StartCoroutine(StartGenerate()); }