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