Exemple #1
0
    GameObject PopSquare(Vector3 pos, Quaternion rot, bool isTarget, Color color)
    {
        var square = SquareContainer.GetSquare();

        square.Pop(pos, rot, isTarget, color);
        return(square.gameObject);
    }
Exemple #2
0
    void Awake()
    {
        SquareContainer.ForEach(square => {
            square.player         = player;
            square.resultReceiver = resultReceiver;
            square.Hide();
        });

        StartCoroutine(StartGenerate());
    }