initial upload
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using UnityEditor;
|
||||
|
||||
namespace RootMotion {
|
||||
|
||||
// Just making sure the camera controller updates last
|
||||
[CustomEditor(typeof(CameraController))]
|
||||
public class CameraControllerInspector : Editor {
|
||||
|
||||
private CameraController script { get { return target as CameraController; }}
|
||||
private MonoScript monoScript;
|
||||
|
||||
void OnEnable() {
|
||||
if (!Application.isPlaying) {
|
||||
monoScript = MonoScript.FromMonoBehaviour(script);
|
||||
int currentExecutionOrder = MonoImporter.GetExecutionOrder(monoScript);
|
||||
if (currentExecutionOrder != 10200) MonoImporter.SetExecutionOrder(monoScript, 10200);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b4af31e5f2e82444d80e3b3020689f59
|
||||
timeCreated: 1444227100
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user