Beispiel #1
0
 /** Updates the mesh.*/
 public override void UpdateFinger()
 {
     UpdateMesh();
     UpdateCapMesh();
     if (m_Renderer != null)
     {
         if (m_Renderer.material != null)
         {
             m_Renderer.material.color = ColorController.CurrentColor();
         }
     }
 }
Beispiel #2
0
 void OnCollisionEnter(Collision collision)
 {
     //Debug.Log ("Painted");
     if (Time.time - startTimer > waitTime)
     {
         if (m_Renderer != null)
         {
             if (m_Renderer.material != null)
             {
                 m_Renderer.material.color = ColorController.CurrentColor();
             }
         }
     }
 }