protected virtual void Start() { Init(); tpInput = GetComponent <MeleeCombatInput>(); if (tpInput) { tpInput.onUpdateInput.AddListener(UpdateLockOn); } }
}//instantiete aimimage to canvas #region Protected methods protected virtual void UpdateLockOn(MeleeCombatInput tpInput) { if (this.tpInput == null) { return; } LockOnInput(); SwitchTargetsInput(); CheckForCharacterAlive(); UpdateAimImage(); }
public void UpdateInput(MeleeCombatInput tpInput) { inventory.lockInput = tpInput.lockInventory; tpInput.lockInputByItemManager = inventory.isOpen || inEquip; }