2025-11-25 08:19:33 -05:00
|
|
|
using System;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Cielonos.MainGame
|
|
|
|
|
{
|
2026-07-18 03:16:20 -04:00
|
|
|
public partial class AttackAreaBase
|
2025-11-25 08:19:33 -05:00
|
|
|
{
|
2026-07-18 03:16:20 -04:00
|
|
|
public abstract class MoveSubmoduleBase : AttackAreaSubmoduleBase
|
2025-11-25 08:19:33 -05:00
|
|
|
{
|
2026-07-18 03:16:20 -04:00
|
|
|
public bool canMove;
|
|
|
|
|
public bool stopWhenHit;
|
|
|
|
|
public float timeScaleCoefficient;
|
|
|
|
|
public Vector3 unscaledVelocity;
|
|
|
|
|
public Vector3 scaledVelocity;
|
2025-11-25 08:19:33 -05:00
|
|
|
|
2026-07-18 03:16:20 -04:00
|
|
|
public MoveSubmoduleBase(AttackAreaBase owner, bool stopWhenHit, float timeScaleCoefficient = 1) : base(owner)
|
|
|
|
|
{
|
|
|
|
|
this.timeScaleCoefficient = timeScaleCoefficient;
|
|
|
|
|
this.stopWhenHit = stopWhenHit;
|
|
|
|
|
this.canMove = true;
|
|
|
|
|
}
|
2025-11-25 08:19:33 -05:00
|
|
|
|
2026-07-18 03:16:20 -04:00
|
|
|
public virtual void Update()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected virtual void OnStopMove()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2025-11-25 08:19:33 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|