예제 #1
0
파일: Edge.cs 프로젝트: zxx2112/TankBattle
        // Necessary for EdgeConnector, which creates temporary edges
        public Edge()
        {
            layer = -1;

            styleSheets.Add(AssetDatabase.LoadAssetAtPath <StyleSheet>(UICreationHelper.templatePath + "Edge.uss"));

            RegisterCallback <AttachToPanelEvent>(OnTargetAttachedToPanel);
            RegisterCallback <DetachFromPanelEvent>(OnTargetDetachedFromPanel);

            m_EdgeBubble = new EdgeBubble();
        }