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); * } */ }
// Use this for initialization void Start() { MiroV1BlackDotMgr mgr = GetComponentInParent <MiroV1BlackDotMgr> (); mgr.NewBlackDot(this); }