public void NextBehavior() { if (myTime < 135 && !(behavior == 1)) //BEHAVIOR 1 { behavior = 1; bc.Display("tense debate about the police", col, 3f, friendclips[0], NextBehavior); annoy.value = .6f; return; } if (myTime < 180 && !(behavior == 2)) //BEHAVIOR 2 { behavior = 2; pm.StartWalking(PathA, NextBehavior); annoy.value = 0f; return; } if (myTime < 285 && !(behavior == 3)) //BEHAVIOR 3 { behavior = 3; bc.Display("cheerfull exchange about the cake", col, 3f, friendclips[1], NextBehavior); annoy.value = 0f; return; } if (myTime >= 285 && !(behavior == 4)) //BEHAVIOR 4 { behavior = 4; pm.StartWalking(PathB, NextBehavior); annoy.value = 0f; return; } }
public void NextBehavior() { if (behavior == 3) { return; } if (behavior == 0) //BEHAVIOR 1 { behavior = 1; bc.Display("enthusiastic chat \nabout cake", col, 3f, friendclips[0], NextBehavior); annoy.value = 0f; return; } if (behavior == 1) //BEHAVIOR 2 { behavior = 2; pm.StartWalking(PathA, NextBehavior); annoy.value = 0f; return; } if (behavior == 2) //BEHAVIOR 3 { behavior = 3; bc.Display("debate about animal rights", col, 3f, friendclips[1], NextBehavior); annoy.value = 0f; return; } }
private new void FixedUpdate() { base.FixedUpdate(); //BC if (bc.AmIIdle()) { if (col == Color.red) { col = Color.green; } else { col = Color.red; } bc.Display("HOHOHOHOHOHO", col, 3f, hohoclip); } }