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

            manager = cc.GetComponent <vCollectMeleeControl>();

            if (manager != null)
            {
                manager.HandleCollectableInput(this);
            }
        }