コード例 #1
0
 /// <summary>
 ///     Get all of our collider information
 /// </summary>
 void getColliderInformation()
 {
     // save your collider preferences
     colliderCenter = GetComponent <CapsuleCollider>().center;
     colliderRadius = GetComponent <CapsuleCollider>().radius;
     colliderHeight = GetComponent <CapsuleCollider>().height;
     Obstacles      = GetComponent <ObstacleAwareness>();
 }
        public override void OnInspectorGUI()
        {
            baseClass = (ObstacleAwareness)target;


            // Draw the base
            base.OnInspectorGUI();

            GUILayout.Space(20f);

            drawCurrentObject();

            GUILayout.Space(20f);
        }