/// <summary> /// 乘客下载具调用此方法, 组件同时关闭 /// </summary> public void GetOff() { if (getOffCallback != null) { getOffCallback(); } getOffCallback = null; _passenger.GetOff(); _passenger = null; enabled = false; }
public override void GetOn(IVCPassenger passenger) { base.GetOn(passenger); passenger.SetHands(_leftHandPoint, _rightHandPoint); }
/// <summary> /// 乘客上载具时调用此方法, 此后乘客会一直同步位置和旋转 /// </summary> public virtual void GetOn(IVCPassenger passenger) { enabled = true; _passenger = passenger; passenger.GetOn(_sitAnimName, this); }