Ejemplo n.º 1
0
    private void OnMouseDown()
    {
        GameObject   game         = transform.root.gameObject;
        GameBehavior gameBehavior = game.GetComponent <GameBehavior>();

        int[] coords = this.GetComponentInParent <TileObjectScript>().GetCoordinates();

        gameBehavior.OnUnitLeftClick(UnitId, coords);
    }