public void UsePickUpAnimations() { if (item.Align) { StartCoroutine(MalbersTools.AlignLookAtTransform(transform, item.transform, item.AlignTime)); StartCoroutine(MalbersTools.AlignTransformRadius(transform, item.transform, item.AlignTime, item.AlignDistance)); } // Debug.Log("UsePickUpAnimations"); if (!animal.Mode_TryActivate(item.PickUpMode.ID, item.PickUpAbility)) //Means if the animal does not have a pick up Animation that calls the PickUP method then It will do it manually { PickUpItem(); } }
public void UsePickUpAnimations() { if (item.Align) { StartCoroutine(MalbersTools.AlignLookAtTransform(transform, item.transform, item.AlignTime)); StartCoroutine(MalbersTools.AlignTransformRadius(transform, item.transform, item.AlignTime, item.AlignDistance)); } // Debug.Log(item.PickUpMode.ID+ "|||| "+ item.PickUpAbility); if (animal.Mode_TryActivate(item.PickUpMode.ID, item.PickUpAbility)) { FocusedItem?.OnFocused.Invoke(false); } else { PickUpItem(); } }