Exemplo n.º 1
0
 public override void update()
 {
     if (GameDad.update_particle_system_tf == null)
     {
         return;
     }
     if (Input.GetKeyDown("-"))
     {
         scaleby(1 / 1.1f);
     }
     if (Input.GetKeyDown("="))
     {
         scaleby(1.1f);
     }
     if (Input.GetKey("left"))
     {
         moveby(Vector3.left);
     }
     if (Input.GetKey("right"))
     {
         moveby(Vector3.right);
     }
     if (Input.GetKey("up"))
     {
         moveby(Vector3.forward);
     }
     if (Input.GetKey("down"))
     {
         moveby(Vector3.back);
     }
     if (Input.GetKey("page up"))
     {
         moveby(Vector3.up);
     }
     if (Input.GetKey("page down"))
     {
         moveby(Vector3.down);
     }
     if (dirty)
     {
         Debug.Log(String.Format("updating {0}", scale));
         GameDad.update_particle_system_tf();
         dirty = false;
     }
 }