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>(); } }
//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; }
static bool drawDefaultInspector = false; //Whether to draw the default inspector with visible variables private void OnEnable() { targetGroup = (ColliderGroup)serializedObject.targetObject; }