Exemple #1
0
    public override void removeItemEffectOnPlayer(unitHitbox player)
    {
        base.removeItemEffectOnPlayer(player);
        StatContol stat = player.GetComponent <StatContol>();

        stat.RemoveIncreaseAttackDamage(percent);
    }
Exemple #2
0
    void Start()
    {
        isImmortal  = false;
        myCol       = gameObject.GetComponent <Collider>();
        anim        = gameObject.GetComponent <Animator>();
        statContol  = GetComponent <StatContol>();
        audioSource = gameObject.GetComponent <AudioSource>();
        playerCon   = gameObject.GetComponent <CharecterControl>();
        if (model != null)
        {
            normalMesh = model.material;
        }
        // hpCurrent = hpMax;
        rb = gameObject.GetComponent <Rigidbody>();
        if (playerCon != null)
        {
            ultimateManager = playerCon.GetUltiManager();
        }

        if (gameObject.tag != "Player")
        {
            id = -1;
        }

        hpCurrent = hpMax;
        if (hpRing != null)
        {
            hpRing.updateGauge(hpMax, hpCurrent);
        }

        if (hpMax == 0 || hpCurrent == 0)
        {
            Debug.Log(gameObject.name + "<=start at 0 hp");
        }
    }
    // Use this for initialization
    void Start()
    {
        stat  = GetComponent <StatContol>();
        agent = gameObject.GetComponent <NavMeshAgent>();

        enemyAI = gameObject.GetComponent <EnemyAI>();
    }
Exemple #4
0
 public override void doActionAPI(unitHitbox unitHitbox)
 {
     base.doActionAPI(unitHitbox);
     StatContol stat      = unitHitbox.GetComponent <StatContol>();
     int        newDamage = stat.IncreaseAttackDamage(percent);
     // Debug.Log("Increase Attack To " + newDamage);
 }
    public override void doActionAPI(unitHitbox unitHitbox)
    {
        base.doActionAPI(unitHitbox);
        // So Ugly, Will change Later
        StatContol stat = unitHitbox.GetComponent <StatContol>();

        stat.IncreaseMaxSpeed(speedUp);
    }
 // Use this for initialization
 void Start()
 {
     laserParticle.Stop();
     stat    = GetComponent <StatContol>();
     agent   = gameObject.GetComponent <NavMeshAgent>();
     anim    = gameObject.GetComponent <Animator>();
     enemyAI = gameObject.GetComponent <EnemyAI>();
     laserHitbox.stopBlinking();
 }
Exemple #7
0
    // Use this for initialization
    void Start()
    {
        stat = GetComponent <StatContol>();

        agent    = gameObject.GetComponent <NavMeshAgent>();
        anim     = gameObject.GetComponent <Animator>();
        enemyAI  = gameObject.GetComponent <EnemyAI>();
        myHitbox = gameObject.GetComponent <unitHitbox>();
    }
Exemple #8
0
    //public float speed;
    // Use this for initialization
    void Start()
    {
        statContol             = GetComponent <StatContol>();
        audioSource            = GetComponent <AudioSource>();
        agent                  = gameObject.GetComponent <NavMeshAgent>();
        anim                   = gameObject.GetComponent <Animator>();
        enemyAI                = gameObject.GetComponent <EnemyAI>();
        myHitbox               = gameObject.GetComponent <unitHitbox>();
        agent.stoppingDistance = AtkRange;

        isAttacking      = false;
        isTrackingTarget = false;
        isReposition     = false;
    }
Exemple #9
0
    void Start()
    {
        statContol = GetComponent <StatContol>();
        isAction   = isComand = false;
        setnextAct();
        agent                  = gameObject.GetComponent <NavMeshAgent>();
        anim                   = gameObject.GetComponent <Animator>();
        enemyAI                = gameObject.GetComponent <EnemyAI>();
        _audioSource           = GetComponent <AudioSource>();
        agent.stoppingDistance = AtkRange;
        agent.speed            = statContol.speedCurrent;
        isAttacking            = false;
        isTrackingTarget       = false;
        isReposition           = false;

        //_audioSource.PlayOneShot(butcherWarCry);
    }
Exemple #10
0
 void Start()
 {
     StartCoroutine("FindingTarget");
     statContol = GetComponent <StatContol>();
     if (agent != null)
     {
         if (statContol != null)
         {
             agent.speed = statContol.baseSpeed;
         }
         else
         {
             agent.speed = 5f;
         }
         agent.stoppingDistance = stopRange;
     }
 }
Exemple #11
0
 // Use this for initialization
 void Start()
 {
     stat = GetComponent <StatContol>();
 }
 // Use this for initialization
 void Start()
 {
     myCrewArray = new EnemyAI[maxEnemy];
     stat        = GetComponent <StatContol>();
     StartCoroutine("spwaningMonster");
 }
Exemple #13
0
 // Use this for initialization
 void Start()
 {
     audioSource = GetComponent <AudioSource>();
     stat        = GetComponent <StatContol>();
 }
Exemple #14
0
    // Use this for initialization

    void Start()
    {
        audioSource = GetComponent <AudioSource>();
        stat        = GetComponent <StatContol>();
        anim        = gameObject.GetComponent <Animator>();
    }
Exemple #15
0
 public void setCharacterStat(StatContol newStat)
 {
     statContol = newStat;
 }
    public override void removeItemEffectOnPlayer(unitHitbox player)
    {
        StatContol stat = player.GetComponent <StatContol>();

        stat.IncreaseMaxSpeed(-speedUp);
    }