//Private Functions private void AddConnection(ref Dot connectedDot) { mConnections.Add(mConnectionFactory.ConnectionFromPool(connectedDot.CurrentColor)); mConnections[mConnections.Count - 1].transform.SetParent(connectedDot.CurrentNode.transform); }