//////////////////Key Stats


    void Awake()
    {
        HE        = GetComponent <HumanoidEnemy>();
        EWC       = GetComponentInChildren <EnemyWeaponController>();
        EAU       = GetComponentInChildren <EnemyAnimationUpdater>();
        EA        = GetComponentInChildren <EnemyArmor>();
        ID        = GetComponentInChildren <InteractiveDia>();
        EH        = GetComponentInChildren <EnemyHealth>();
        DR        = GetComponentInChildren <DiaRoot>();
        selfTrans = transform.Find("Hitbox");
    }
示例#2
0
    public void SetupDia(Transform DiaRoot)
    {
        if (first_setup)
        {
            FirstSetup();
        }

        diaRoot = DiaRoot.GetComponent <DiaRoot>();

        next_dest = null; //used when there is no player input
        ViewText(diaRoot.ReturnStarting());
    }