private void Awake() { playerStatsScript = GetComponent <PlayerStats>(); playerRigidbody = GetComponent <Rigidbody>(); floorMask = LayerMask.GetMask("Floor"); //charAnimations = GetComponentInChildren<Animator>(); charAnimations = transform.Find("The Adventurer Blake").GetComponent <Animator>(); //charAnimations.SetBool("isRunning", false); swordSlice = playerStatsScript.swordHit; gunShot = playerStatsScript.shoot; //inventory code inventory = new InventoryHelp(); UI_Weapons.SetInventory(inventory); }
public void SetInventory(InventoryHelp inventory) { this.inventoryHelp = inventory; }