示例#1
0
 void Start()
 {
     player         = FindObjectOfType <Player.PlayerController>();
     state          = 0;
     prevState      = 0;
     health         = startHealth;
     backUpDuration = 30;
     backUpTimer    = 31;
     doOnce         = false;
     animDone       = false;
     backOff        = false;
     currentNode    = 0;
     navObjectMask  = 1 << 10;
     machine        = new LittleBuddyStateMachine(aggresionRadius, fleeDistance, timeCanChase, waitTime, restTime, coward, fearless, followDistance);
 }
 void Start()
 {
     player = FindObjectOfType<Player.PlayerController>();
     state = 0;
     prevState = 0;
     health = startHealth;
     backUpDuration = 30;
     backUpTimer = 31;
     doOnce = false;
     animDone = false;
     backOff = false;
     currentNode = 0;
     navObjectMask = 1 << 10;
     machine = new LittleBuddyStateMachine(aggresionRadius, fleeDistance, timeCanChase, waitTime, restTime, coward, fearless, followDistance);
 }