예제 #1
0
 void Start()
 {
     rb = GetComponent <Rigidbody2D> ();
     if (TiltOrTouch.isTilt)
     {
         getDirection = GetInputUsingTilt;
     }
     else
     {
         getDirection = GetInputUsingTouch;
     }
 }
예제 #2
0
 public MovementControllerWASD(float speed, DirectionFunction dirFunc)
 {
     this.speed   = speed;
     this.dirFunc = dirFunc;
 }