Esempio n. 1
0
 protected virtual void Start()
 {
     Init();
     tpInput = GetComponent <MeleeCombatInput>();
     if (tpInput)
     {
         tpInput.onUpdateInput.AddListener(UpdateLockOn);
     }
 }
Esempio n. 2
0
    }//instantiete aimimage  to canvas

    #region Protected methods

    protected virtual void UpdateLockOn(MeleeCombatInput tpInput)
    {
        if (this.tpInput == null)
        {
            return;
        }
        LockOnInput();
        SwitchTargetsInput();
        CheckForCharacterAlive();
        UpdateAimImage();
    }
Esempio n. 3
0
 public void UpdateInput(MeleeCombatInput tpInput)
 {
     inventory.lockInput            = tpInput.lockInventory;
     tpInput.lockInputByItemManager = inventory.isOpen || inEquip;
 }