private void Awake() { eInputMode = EInputMode.FREEMOVEMENT; eState = EState.NORMAL; m_Rigidbody2D = GetComponent <Rigidbody2D>(); cPlayerInput = this.GetComponent <CPlayerInput>(); }
public override void OnUse(CPlayerInput cPlayerInput) { if (!base.used) { if (cPlayerInput.cInventario.getItemAmount(EItem.BRANCH) > 0) { base.used = true; print("mayor a 0"); cPlayerInput.cInventario.removeItem(EItem.BRANCH); Encender(); } } }
public abstract void OnUse(CPlayerInput cPlayerInput);