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