protected override void OnInitializeCursor()
    {
        startTile = character.currentTile;

        _selector = HexTerrain.CreateTileSelector(controller.color, 1.5f, 0.9f);

        AlphaPingPong anim = _selector.AddComponent <AlphaPingPong>();

        anim.intensity = 0.5f;

        _selectorTransform          = _selector.transform;
        _selectorTransform.position = Vector3.forward * 10000.0f;
    }
Exemple #2
0
    /// <summary>
    /// Init the cursor
    /// </summary>
    protected override void OnInitializeCursor()
    {
        selector = HexTerrain.CreateTileSelector(controller.color, 1.5f, 0.9f);

        AlphaPingPong anim = selector.AddComponent <AlphaPingPong>();

        anim.intensity = 0.5f;

        selector.transform.position = Vector3.forward * 10000.0f;

        if (GameController.state == GameState.Exploration)
        {
            HexCamera.ShowMask(character, maxRange);
        }

        updateTargets();
        updateSelector();
    }