コード例 #1
0
    void TargetSetHighlight(LandProperty target)
    {
        if (!target)
        {
            return;
        }
        Material highligh = new Material(Shader.Find("Custom/OutLine2"));

        highligh.SetColor("_TintColor", HexToColor("FF7C7C00"));
        highligh.mainTexture = target.SelfMaterial_.mainTexture;
        target.SetMaterial(highligh);
        target.GetComponent <LandJump>().ClickUp();
        Instantiate(ClickSound.gameObject);
    }