Exemplo n.º 1
0
    public void OnHexClick(GameObject go)
    {
        IHex hex = HexFactory.GetHex(go, Range);

        hex.Execute(go);

        UpdateClickText(--MAX_CLICKS);
        UpdateHexText(HexManager.HexCount);

        if (HexManager.HexCount == 0 || MAX_CLICKS == 0)
        {
            OnGameOver();
        }
    }