void Awake() { if (Instance != null) { Debug.LogError("Multiple instances of PlayerEngine!"); } Instance = this; }