示例#1
0
 void Start()
 {
     _maxHealth = health;
     animator   = gameObject.GetComponent <Animator> ();
     animator.SetInteger("Health", health);
     _path = GameObject.Find("Path01");
     if (pathNumber == 2)
     {
         _path = GameObject.Find("Path02");
     }
     _pathNode         = _path.transform.GetChild(_nodeIndex);
     _rotation_speed   = speed * 2f;
     _sceneMainManager = GameObject.Find("GameManager").GetComponent <SceneMainManager>();
     _status           = Statuses.SPAWNED;
     GetDestinationRandomization();
 }
示例#2
0
 void Start()
 {
     _uiManager    = gameObject.GetComponent <UIManager> ();
     _sceneManager = gameObject.GetComponent <SceneMainManager> ();
 }