Пример #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void Start()
        {
            Init();
            SensorTriggerSystem sys = SensorTriggerSystem.instance;

            sys.AddTrigger(this);
        }
Пример #2
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void Start()
        {
            Init();
            //把当前感应器放到 感应系统中
            SensorTriggerSystem sys = SensorTriggerSystem.instance;

            sys.AddSensor(this);
        }