public override void removeItemEffectOnPlayer(unitHitbox player) { base.removeItemEffectOnPlayer(player); StatContol stat = player.GetComponent <StatContol>(); stat.RemoveIncreaseAttackDamage(percent); }
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>(); }
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(); }
// 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>(); }
//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; }
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); }
void Start() { StartCoroutine("FindingTarget"); statContol = GetComponent <StatContol>(); if (agent != null) { if (statContol != null) { agent.speed = statContol.baseSpeed; } else { agent.speed = 5f; } agent.stoppingDistance = stopRange; } }
// Use this for initialization void Start() { stat = GetComponent <StatContol>(); }
// Use this for initialization void Start() { myCrewArray = new EnemyAI[maxEnemy]; stat = GetComponent <StatContol>(); StartCoroutine("spwaningMonster"); }
// Use this for initialization void Start() { audioSource = GetComponent <AudioSource>(); stat = GetComponent <StatContol>(); }
// Use this for initialization void Start() { audioSource = GetComponent <AudioSource>(); stat = GetComponent <StatContol>(); anim = gameObject.GetComponent <Animator>(); }
public void setCharacterStat(StatContol newStat) { statContol = newStat; }
public override void removeItemEffectOnPlayer(unitHitbox player) { StatContol stat = player.GetComponent <StatContol>(); stat.IncreaseMaxSpeed(-speedUp); }