void SpawnFastMissiles() { FastMissile o = GameObject.Instantiate(fastMissilePrefab).GetComponent <FastMissile>(); o.PlayerTransform = playerTransform; o.transform.position = boss.fastMissileSpawn.position; boss.Attack(); }
public void Exec() { boss.transform.position += dir.normalized * moveSpeed * Time.deltaTime; internalTime += Time.deltaTime; if (internalTime >= boss.TimeUntilShock) { boss.Attack(); boss.ExecuteElectricAttack(); internalTime = 0.0f; } }
private void OnTriggerEnter2D(Collider2D collision) { PlayerModel p = collision.gameObject.GetComponent <PlayerModel>(); if (p != null) { boss.Attack(); boss.ClawSound(); p.TakeDamage(boss.ClawDamage); } }