예제 #1
0
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            if (GUILayout.Button("Reset All Positions"))
            {
                Debug.Log("Resetting All Positions");
                TestingEnvironment e = (TestingEnvironment)target;
                e.ResetAllPositions();
            }
        }
예제 #2
0
 private void Start()
 {
     rb  = this.gameObject.GetComponent <Rigidbody>();
     env = this.gameObject.GetComponentInParent <TestingEnvironment>();
 }