private void Awake() { animator = GetComponent <Animator>(); audioSource = GetComponent <AudioSource>(); itemDropper = GetComponent <IItemDropper>(); if (itemDropper == null) { Debug.LogError("[" + gameObject.name + ".InteractableChest.Awake]" + " itemDropper is null"); } }
private void Awake() { itemDropper = GetComponent <IItemDropper>(); levelToAdd = GameObject.Find("Generator").GetComponent <GenerateIsland>().islandStorage.level / 4; }
public DropItemCommand(IItemDropper itemDropper, Item item, Vector3 position) { this.itemDropper = itemDropper; this.item = item; this.position = position; }