Example #1
0
    public void HandleCellClicked(CellController cell)
    {
        CellController activeResource = ResourceController.GetActiveResource();

        if (activeResource)
        {
            ship.FireGun();
            SpawnCell(cell.X, cell.Y, activeResource);
        }
        else
        {
            SoundManager.PlaySound(SoundManager.Sound.CantPlace);
        }
    }