Пример #1
0
        public Text actionButtonText;      //UI text on the drop/reset button

        private void Awake()
        {
            //Set up collider group and starting position
            if (target != null)
            {
                initialPos = target.transform.position;
                colGroup   = target.AddComponent <ColliderGroup>();
            }
        }
Пример #2
0
 //Creates a new info struct with the given target game object, target collider group, and index in the collider list
 public ColliderGroupTargetInfo(GameObject t, ColliderGroup cg, int i)
 {
     target = t;
     group  = cg;
     index  = i;
 }
Пример #3
0
        static bool drawDefaultInspector = false; //Whether to draw the default inspector with visible variables

        private void OnEnable()
        {
            targetGroup = (ColliderGroup)serializedObject.targetObject;
        }