Skip to content

Commit

Permalink
Hotfix Previous version
Browse files Browse the repository at this point in the history
  • Loading branch information
Happyrobot33 committed Apr 23, 2023
1 parent 52a65fb commit ae6569d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 76 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class OpenFlight : UdonSharpBehaviour
{
//this removes any override that the editor might have set through the inspector ([HideInInspector] does NOT do that)
[System.NonSerialized]
public string OpenFlightVersion = "1.0.0";
public string OpenFlightVersion = "1.2.6";
public GameObject wingedFlight;
public AvatarDetection avatarDetection;
public string flightMode = "Auto";
Expand All @@ -18,8 +18,6 @@ public class OpenFlight : UdonSharpBehaviour
[ReadOnly]
public bool flightAllowed = false;

public TextAsset packageJson;

void SwitchFlight()
{
wingedFlight.SetActive(false);
Expand All @@ -33,22 +31,6 @@ public void Start()
{
FlightOff();
}

//determine the version by grabbing from package.json
if (packageJson != null)
{
string version = packageJson.text;
version = version.Substring(version.IndexOf("version") + 10); //this makes version look like "1.0.0"
//remove the first " from the version number
version = version.Substring(1);
version = version.Substring(0, version.IndexOf("\"")); //this removes the last " from the version number
OpenFlightVersion = version;
}
else
{
OpenFlightVersion = "N/A";
Debug.LogError("OpenFlight: package.json not found. Version number not set.");
}
}

public void FlightOn()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ MonoBehaviour:
Data:
- Name:
Entry: 12
Data: 7
Data: 6
- Name:
Entry: 7
Data:
Expand Down Expand Up @@ -381,60 +381,6 @@ MonoBehaviour:
- Name:
Entry: 8
Data:
- Name:
Entry: 7
Data:
- Name: $k
Entry: 1
Data: packageJson
- Name: $v
Entry: 7
Data: 22|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor
- Name: <Name>k__BackingField
Entry: 1
Data: packageJson
- Name: <UserType>k__BackingField
Entry: 7
Data: 23|System.RuntimeType, mscorlib
- Name:
Entry: 1
Data: UnityEngine.TextAsset, UnityEngine.CoreModule
- Name:
Entry: 8
Data:
- Name: <SystemType>k__BackingField
Entry: 9
Data: 23
- Name: <SyncMode>k__BackingField
Entry: 7
Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib
- Name:
Entry: 6
Data:
- Name:
Entry: 8
Data:
- Name: <IsSerialized>k__BackingField
Entry: 5
Data: true
- Name: _fieldAttributes
Entry: 7
Data: 24|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib
- Name:
Entry: 12
Data: 0
- Name:
Entry: 13
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 8
Data:
- Name:
Entry: 13
Data:
Expand Down
2 changes: 1 addition & 1 deletion Packages/com.mattshark.openflight/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.mattshark.openflight",
"displayName": "OpenFlight",
"version": "1.2.5",
"version": "1.2.6",
"description": "A VRChat flight system that allow all kinds of avatars to fly. https://github.com/Mattshark89/OpenFlight-VRC",
"bugs" : {
"url" : "https://github.com/Mattshark89/OpenFlight-VRC/issues"
Expand Down

0 comments on commit ae6569d

Please sign in to comment.