Beispiel #1
0
        public void AddBall(MiroV1RingBallBase ball)
        {
            ball.transform.SetParent(transform);

            MiroV1BlackDotMgr mgr = GetComponentInParent <MiroV1BlackDotMgr> ();

            mgr.NewBlackDot(ball);

            _Balls.Add(ball);

            /*
             * int count = _Balls.Count;
             * if (count >= _RingBallAdded.Count)
             *      return;
             *
             *
             *
             *
             *
             * if (!_Balls.Contains (ball)) {
             *      EventWithGameObject evnt = _RingBallAdded [count];
             *      evnt.Invoke (ball.gameObject);
             *      _Balls.Add (ball);
             * }
             */
        }
Beispiel #2
0
        // Use this for initialization
        void Start()
        {
            MiroV1BlackDotMgr mgr = GetComponentInParent <MiroV1BlackDotMgr> ();

            mgr.NewBlackDot(this);
        }