コード例 #1
0
    /// <summary>
    /// Shows the indicator.
    /// </summary>
    private void ShowIndicator()
    {
        gameObject.GetComponent <MeshRenderer>().material.color = highlightColour;

        Vector3 upPos = BasePosition;

        upPos.y += 15f;

        GetComponent <SmoothMovement>().rate = 0.2f;
        GetComponent <SmoothMovement>().MoveTo(upPos);

        if (tower != null)
        {
            tower.UpdatePosition(upPos.y - basePosition.y);
        }
    }