Beispiel #1
0
 public void LockOn(CameraFollowable c)
 {
     // add locked on target, update desiredX every update
     lockingTo = c;
     snapToLock = false;
 }
Beispiel #2
0
 public void StopLockOn()
 {
     // remove locked on target, set desiredX to currentX
     lockingTo = null;
     desiredX = currentX;
 }
Beispiel #3
0
	// Use this for initialization
	void Start () {
        lockingTo = null;
	}