void Awake() { this.isInteractable = false; this.actualMoveDirection = this.moveDirection; this.SetMoveAxis(this.actualMoveDirection); for (int i = 0; i < this.handles.Count; i++) { this.handles[i].ConnectTo(this); } }
/// <summary> /// Set the axis of this drawer; the cleanest way of doing so. /// </summary> /// <param name="newAxis"></param> public void SetMoveAxis(DrawerAxis newAxis) { this.actualMoveDirection = newAxis; this.moveAxis = (this.originalRot * this.MoveAxis()).normalized; }