Esempio n. 1
0
 public override void OnInspectorGUI()
 {
     if (AimConstraintEditor.s_Style == null)
     {
         AimConstraintEditor.s_Style = new AimConstraintEditor.Styles();
     }
     base.serializedObject.Update();
     base.ShowConstraintEditor <AimConstraint>(AimConstraintEditor.s_Style);
     base.serializedObject.ApplyModifiedProperties();
 }
Esempio n. 2
0
 public void OnEnable()
 {
     if (AimConstraintEditor.s_Style == null)
     {
         AimConstraintEditor.s_Style = new AimConstraintEditor.Styles();
     }
     this.m_RotationAtRest    = base.serializedObject.FindProperty("m_RotationAtRest");
     this.m_RotationOffset    = base.serializedObject.FindProperty("m_RotationOffset");
     this.m_AimVector         = base.serializedObject.FindProperty("m_AimVector");
     this.m_UpVector          = base.serializedObject.FindProperty("m_UpVector");
     this.m_WorldUpVector     = base.serializedObject.FindProperty("m_WorldUpVector");
     this.m_WorldUpObject     = base.serializedObject.FindProperty("m_WorldUpObject");
     this.m_WorldUpType       = base.serializedObject.FindProperty("m_UpType");
     this.m_Weight            = base.serializedObject.FindProperty("m_Weight");
     this.m_IsContraintActive = base.serializedObject.FindProperty("m_IsContraintActive");
     this.m_IsLocked          = base.serializedObject.FindProperty("m_IsLocked");
     this.m_Sources           = base.serializedObject.FindProperty("m_Sources");
     base.OnEnable(AimConstraintEditor.s_Style);
 }