示例#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;
 }
示例#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>();
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     m_sprRender = GetComponentInChildren<SpriteRenderer>();
     m_movingBehaviour = GetComponent<MovingBehaviour>();
 }
示例#4
0
 protected void Start()
 {
     m_movingBehavior = GetComponent <MovingBehaviour>();
 }
示例#5
0
 // Use this for initialization
 protected void Start()
 {
     m_movingBehavior = GetComponent <MovingBehaviour>();
     Path             = new LinkedList <IPathNode>();
 }
示例#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>();
 }