//////////////////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 Skeleton(string name, int health)
    {
        Name      = name;
        EnemyID   = 0;
        Health    = health;
        Stats     = new int[] { 13, 10, 0, 10, 10, 10 };
        Modifiers = new int[] { 2, 0, 0, 0, 0, 0 };
        Skills    = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 };
        Speed     = 10;

        enemyArmor  = new EnemyArmor();
        enemyWeapon = new EnemyWeapon();
    }