Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     m_moving = GetComponent<MovingBehaviour>();
     m_pathFindingBehaviour = GetComponent<MapPathFindingBehaviour>();
     m_animCtrl = GetComponent<DirectionalAnimation>();
     m_pathFindingBehaviour.TargetPos = transform.position;
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     m_fAngOff = 360f * Random.value;
     m_player = GameObject.FindGameObjectWithTag("Player");
     m_moving = GetComponent<MovingBehaviour>();
     m_phyChar = GetComponent<PhysicCharBehaviour>();
     m_pathFindingBehaviour = GetComponent<MapPathFindingBehaviour>();
     m_animCtrl = GetComponent<DirectionalAnimation>();
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     m_sprRender = GetComponentInChildren<SpriteRenderer>();
     m_movingBehaviour = GetComponent<MovingBehaviour>();
 }
Esempio n. 4
0
 protected void Start()
 {
     m_movingBehavior = GetComponent <MovingBehaviour>();
 }
Esempio n. 5
0
 // Use this for initialization
 protected void Start()
 {
     m_movingBehavior = GetComponent <MovingBehaviour>();
     Path             = new LinkedList <IPathNode>();
 }
Esempio n. 6
0
 // Use this for initialization
 void Start()
 {
     m_sprRender       = GetComponentInChildren <SpriteRenderer>();
     m_movingBehaviour = GetComponent <MovingBehaviour>();
 }
 // Use this for initialization
 protected void Start()
 {
     m_movingBehavior = GetComponent<MovingBehaviour>();
     Path = new LinkedList<IPathNode>();
 }