Пример #1
0
 void GoNorth(GoNorthEvent eventTest)
 {
     currentMat = 3;
     foreach (GameObject top in wallTops)
     {
         if (top != null)
         {
             topRender = top.GetComponentsInChildren <Renderer> ();
             foreach (Renderer rend in topRender)
             {
                 rend.material.Lerp(rend.material, getColor(eventTest.emotion), 0.5f);
             }
         }
     }
 }
Пример #2
0
 void GoNorth(GoNorthEvent eventTest)
 {
     GetComponent <Gun>().Shoot("joy");
 }