Search Unity

ColorFunctionParamProblem

Discussion in 'Scripting' started by kenman, Apr 18, 2015.

  1. kenman

    kenman

    Joined:
    Mar 3, 2014
    Posts:
    14
    i want to do something like this
    but it doesnt' work.
    hope someone can help me or tell me the keyword so that i can find the solution,thx a lot

    Code (CSharp):
    1.     public void ChgColor(Color color)
    2.     {
    3.         gameObject.renderer.material.color = color;
    4.     }