示例#1
0
    public override void OnInspectorGUI()
    {
        m_Target = (EnemyBorn)target;

        DrawDefaultInspector();
        DrawStatesInspector();
    }
        protected override void Start()
        {
            base.Start();
            agent             = GetComponent <NavMeshAgent>();
            animator          = GetComponent <Animator>();
            agent.destination = FindObjectOfType <Home>().RandomGoal;

            EnemyBorn.Dispatch(this);
        }