コード例 #1
0
    // Use this for initialization
    void Awake()
    {
        m_controller   = transform.GetComponentInChildren <GalaxyTweenController>();
        m_mainSpot     = transform.Find("Root/Sprite").gameObject;
        m_targetWidget = transform.GetComponent <UIWidget>();
        m_dragObj      = transform.GetComponentInChildren <UIDragObject>();

        UIEventListener.Get(m_mainSpot).onPress = OnPress;
        UIEventListener.Get(m_mainSpot).onDrag  = OnDrag;
        SetWidgetSize(false);
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     controller = transform.GetComponent <GalaxyTweenController>();
 }
コード例 #3
0
 void OnEnable()
 {
     _src = target as GalaxyTweenController;
     _src.ReInit();
 }