示例#1
0
 /// <summary> Should be called, if the angular velocity is changed </summary>
 public void UpdateAngularVelocity()
 {
     try {
         EditorGeneral.current_movable.AngularVelocity = Arrows.UI2Engine(InputAngularVelocity);
     } catch (FormatException) {
         EditorGeneral.Throw("Illegal angular velocity input");
     } catch (NullReferenceException) {
         EditorGeneral.Throw("Nothing Selected");
     }
 }
示例#2
0
 /// <summary> Should be called, if the rotation is changed </summary>
 public void UpdateRot()
 {
     try {
         EditorGeneral.current_movable.Rotation = Arrows.UI2Engine(InputRotation);
     } catch (FormatException) {
         EditorGeneral.Throw("Illegal rotation input");
     } catch (NullReferenceException) {
         EditorGeneral.Throw("Nothing Selected");
     }
 }
示例#3
0
 private void Awake()
 {
     arrows          = GameObject.FindGameObjectWithTag("Arrows").GetComponent <Arrows>();
     maincam         = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>();
     inspector       = GameObject.Find("inspector").GetComponent <Inspector>();
     active          = this;
     current_movable = null;
     mainV           = GameObject.Find("Canvas").GetComponent <Canvas>();
     storyV          = GameObject.Find("StoryCanvas").GetComponent <Canvas>();
     StoryView       = false;
 }