示例#1
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        updateMaterial();
    }
示例#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();
    }
示例#3
0
 protected override void OnHideCursor()
 {
     HexCamera.HideMask(character);
     selector.gameObject.SetActive(false);
 }
 protected override void OnHideCursor()
 {
     HexTerrain.DestroyBorder(outlineHandle);
     HexCamera.HideMask(character);
     selector.gameObject.SetActive(false);
 }