Ejemplo n.º 1
0
        void Awake()
        {
            rectDetector    = GetComponent <RectDetector>();
            switchComponent = GetComponent <Switch>();

            _Subscribe_Events();
        }
Ejemplo n.º 2
0
        void Awake()
        {
            timer        = GetComponent <Timer>();
            rectDetector = GetComponent <RectDetector>();
            moveAgent    = GetComponent <MoveAgent>();

            _Subscribe_Events();
        }
Ejemplo n.º 3
0
        void Awake()
        {
            rectDetector = GetComponent <RectDetector>();

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