public AskforIngridients(GameObject objectTarget, AICharacter selftarget, AICharacter eggchef, AICharacter milkchef) { DeliverObject = objectTarget; Self = selftarget; Milkchef = milkchef; Eggchef = eggchef; }
public bool GoToObject(AICharacter currentcharacter, GameObject TargetObject) { currentcharacter.transform.position = Vector3.MoveTowards(currentcharacter.transform.position, TargetObject.transform.position, currentcharacter.AIMovementSpeed * Time.deltaTime); return(Vector3.Distance(currentcharacter.transform.position, TargetObject.transform.position) > 1); }
public GrabEgg(GameObject objectTarget, AICharacter selftarget) { DeliverObject = objectTarget; Self = selftarget; }
public DeliverEgg(AICharacter pancakechef, AICharacter selftarget) { DeliverObject = pancakechef; Self = selftarget; }
public EggChef(AICharacter pancakechef, GameObject chicken, AICharacter selftarget) { Pancakechef = pancakechef; Chicken = chicken; thischaracter = selftarget; }
public PancakeChef(GameObject target, AICharacter selfchef) { Oven = target; thischaracter = selfchef; }
public MilkChef(AICharacter pancakechef, GameObject cow, AICharacter selftarget) { Pancakechef = pancakechef; thischaracter = selftarget; Cow = cow; }
public Cook(AICharacter selftarget) { Self = selftarget; CookTime = 0; }