// Use this for initialization void Start() { m_moving = GetComponent<MovingBehaviour>(); m_phyChar = GetComponent<PhysicCharBehaviour>(); m_pathFindingBehaviour = GetComponent<MapPathFindingBehaviour>(); m_animCtrl = GetComponent<CharAnimationController>(); }
// 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<CharAnimationController>(); }
protected override void Start() { base.Start(); m_playerCtrl = GameObject.FindObjectOfType<PlayerController>(); phyChar = GetComponent<PhysicCharBehaviour>(); }