예제 #1
0
 void GoSouth(GoSouthEvent eventTest)
 {
     currentMat = 4;
     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 GoSouth(GoSouthEvent eventTest)
    {
        Vector3 movement = new Vector3(0.0f, 0.0f, -1.0f);

        GetComponent <Rigidbody>().AddForce(movement * speed * Time.deltaTime);
    }