// Use this for initialization void Start() { meleeControl = GetComponent <vCollectMeleeControl>(); if (rootBone.childCount == 0) { equippedWeaponType = FarmWeaponType.Damage; } characterUIWindow.OnAddedItem += CreateAndEquip; }
public override IEnumerator OnPressActionDelay(GameObject cc) { yield return(StartCoroutine(base.OnPressActionDelay(cc))); manager = cc.GetComponent <vCollectMeleeControl>(); if (manager != null) { manager.HandleCollectableInput(this); } }