コード例 #1
0
 // Use this for initialization
 void Start()
 {
     state           = "FindNode";
     moveSpeed       = baseSpeed;
     rotation        = baseRotation;
     guardController = GetComponent <CharacterController>();
     player          = GameObject.FindGameObjectWithTag("Player");
     //Find an initial node to be lastNode
     targetNode = Sense.startNode(gameObject, Sense.nearbyNodes(gameObject, nodeDistance));
     lastNode   = Sense.startNode(gameObject, Sense.nearbyNodes(gameObject, nodeDistance));
 }