Example #1
0
    public override void Bind()
    {
        base.Bind();
        this.BindKey(FPSWeapon.NextZoom, KeyCode.LeftShift);
        this.BindKey(FPSWeapon.Reload, KeyCode.R);



        FPSCrosshair.ResetCrosshair();
    }
Example #2
0
    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;
        }
    }
Example #3
0
    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();
    }