topical media & game development

talk show tell print

lib-unity-tutorial-network-m2h-Assets-MenuScene-Rotator.js / js



  /* 
  *  This file is part of the Unity networking tutorial by M2H (http://www.M2H.nl)
  *  The original author of this code is Mike Hergaarden, even though some small parts 
  *  are copied from the Unity tutorials/manuals.
  *  Feel free to use this code for your own projects, drop us a line if you made something exciting! 
  */
  #pragma strict
  
  private var myTrans : Transform;
  public var rotateSpeed : int = 20;
  
  function Awake(){
          myTrans=transform;
  }
  
  function Update () {
          myTrans.Rotate(Vector3(Time.deltaTime*rotateSpeed,0,0));
  }


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.