topical media & game development

talk show tell print

lib-unity-tutorial-gameplay-Assets-Scripts-2D-PlatformTarget.js / js



  // This script must be attached to a game object to tell Unity where the Moving Platforms should move to.
  
  // We'll draw a gizmo in the scene view, so it can be found....
  function OnDrawGizmos() {
          Gizmos.DrawIcon(transform.position, "platformIcon.tif");
  }
  


(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.