Exemplo n.º 1
0
        protected override void DoInit()
        {
            base.DoInit();

            isMousePressed     = false;
            lines              = new List <Line> ();
            OnLineUpdateEvent += MyOnLineUpdateEvent;
//			linePrefab = Resources.Load ("Prefabs/Line", typeof(Line)) as Line;
            _touchDetector = new TouchDetector(null);
            _touchDetector.OnTouchEvent += OnTouchEventCall;
            _objectPoolController        = new ObjectPoolController(lineCopiesParent);

            _objectPoolController.InitPool <Line> ("line", linePrefab, 15);
        }