public override void DoUpdate(ShotView shot) { if (_shotData == null) { return; } _rbody.MovePosition(_rbody.position + _velocity); }
public override void Setup(ShotView shot) { _shotData = shot; _transform = transform; _rbody = GetComponent <Rigidbody2D>(); _velocity = shotVelocity * _shotData.data.shotDirection * Time.fixedDeltaTime; _transform.position = shot.data.spawnPoint; }
public abstract void DoUpdate(ShotView shot);
public override void DeactivateShot() { gameObject.SetActive(false); _shotData = null; }
public abstract void Setup(ShotView shot);