public void BecomePossessed(TrapBossGlhost myboss, float possessDuration, float possessedFireDelay, float possessedSpawnDelay, float moveSpeed, float xmin, float xmax, float zmin, float zmax) { _bossRef = myboss; _possessedTime = possessDuration; _realFireDelay = possessedFireDelay; _realSpawnDelay = possessedSpawnDelay; _moveSpeed = moveSpeed; switch (_myOrientationInBossRoom) { case BossOrientation.VERTICAL: _ZMax = zmax; _ZMin = zmin; _moveVector = Vector3.forward; break; case BossOrientation.HORIZONTAL: _XMax = xmax; _XMin = xmin; _moveVector = Vector3.right; break; default: break; } _possessed = true; _startPossessTime = Time.time; }
public void BecomePossessed(TrapBossGlhost myboss, float possessDuration, float attackSpeed, float attackDelay, float retreatSpeed, float moveSpeed) { _bossRef = myboss; _possessedTime = possessDuration; _realAttackDelayDuration = attackDelay; _realAttackSpeed = attackSpeed; _realRetreatSpeed = retreatSpeed; _moveSpeed = moveSpeed; _possessed = true; base.StartTell(); _startPossessTime = Time.time; }