Space-Smash-Out/Assets/Scripts/ShipState.cs

23 lines
522 B
C#

using FishNet.Object.Prediction;
using UnityEngine;
namespace ShipHandling
{
/// <summary>
/// Variables for the ship which can also be under the players control.
/// </summary>
public class ShipState
{
public float thrustInput = 0;
public float boostInput = 0;
public float shootInput = 0;
public float boostCapacity;
// Saves the current input for steering
public float steerInput = 0;
public Vector3 currentGravity = new Vector3();
public bool IsFrozen = false;
public bool reset = false;
}
}