Пример #1
0
        void Awake()
        {
            rectDetector    = GetComponent <RectDetector>();
            switchComponent = GetComponent <Switch>();

            _Subscribe_Events();
        }
Пример #2
0
        void Awake()
        {
            timer        = GetComponent <Timer>();
            rectDetector = GetComponent <RectDetector>();
            moveAgent    = GetComponent <MoveAgent>();

            _Subscribe_Events();
        }
Пример #3
0
        void Awake()
        {
            rectDetector = GetComponent <RectDetector>();

            if (rectDetector)
            {
                rectDetector.OnEnter += _OnEnter;
            }
        }