public override void Bind() { base.Bind(); this.BindKey(FPSWeapon.NextZoom, KeyCode.LeftShift); this.BindKey(FPSWeapon.Reload, KeyCode.R); FPSCrosshair.ResetCrosshair(); }
public override void ZoomIndexChanged(int zoomIndex) { base.ZoomIndexChanged(zoomIndex); FPSCrosshair.ResetCrosshair(); var zoomTransform = transform.FindChild(zoomIndex.ToString(CultureInfo.InvariantCulture)); if (zoomTransform != null) { _StartPosition = zoomTransform.localPosition; _StartRotation = zoomTransform.localRotation; } }
public override void Bind() { base.Bind(); //this.BindKey(FPSWeapon.NextZoom, KeyCode.LeftShift); this.BindKey(FPSWeapon.Reload, KeyCode.R); //this.BindKey(ExecuteReload(), KeyCode.R); //this.BindViewTriggerWith<CollectionMagazineView>(CollisionEventType.Enter, Magazineview => //{ // Debug.Log("ddddddddd"); // Magazineview.ExecuteAddMag(); // ExecuteAddMagazine(); //}); FPSCrosshair.ResetCrosshair(); }