Esempio n. 1
0
 public AskforIngridients(GameObject objectTarget, AICharacter selftarget, AICharacter eggchef, AICharacter milkchef)
 {
     DeliverObject = objectTarget;
     Self          = selftarget;
     Milkchef      = milkchef;
     Eggchef       = eggchef;
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 public GrabEgg(GameObject objectTarget, AICharacter selftarget)
 {
     DeliverObject = objectTarget;
     Self          = selftarget;
 }
Esempio n. 4
0
 public DeliverEgg(AICharacter pancakechef, AICharacter selftarget)
 {
     DeliverObject = pancakechef;
     Self          = selftarget;
 }
Esempio n. 5
0
 public EggChef(AICharacter pancakechef, GameObject chicken, AICharacter selftarget)
 {
     Pancakechef   = pancakechef;
     Chicken       = chicken;
     thischaracter = selftarget;
 }
Esempio n. 6
0
 public PancakeChef(GameObject target, AICharacter selfchef)
 {
     Oven          = target;
     thischaracter = selfchef;
 }
Esempio n. 7
0
 public MilkChef(AICharacter pancakechef, GameObject cow, AICharacter selftarget)
 {
     Pancakechef   = pancakechef;
     thischaracter = selftarget;
     Cow           = cow;
 }
Esempio n. 8
0
 public Cook(AICharacter selftarget)
 {
     Self     = selftarget;
     CookTime = 0;
 }