コード例 #1
0
        private void SetGroup(GameObject obj, StringListOption option)
        {
            int index = groups.IndexOf(option);

            if (sensor != null && index >= 0 && index < groups.Count)
            {
                sensor.blockTypeIndex = index;
            }
        }
コード例 #2
0
        private void SetSchedule(GameObject obj, StringListOption option)
        {
            int index = schedules.IndexOf(option);

            if (sensor != null && index >= 0 && index < schedules.Count)
            {
                sensor.scheduleIndex = index;
            }
        }