using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Saltosion.OneWeapon.Bullets { [RequireComponent(typeof(Bullet))] public class RevolverBullet : MonoBehaviour { public Rigidbody2D Body; void Start() { Vector2 Direction = GetComponent().Direction; float Rot = GetComponent().InitialRotation; Body.velocity = Direction * 15; Body.rotation = Rot - 90; } } }