예제 #1
0
        void Awake()
        {
            _rectTransform = Target.GetComponent <RectTransform>();

            _tweenVec = gameObject.AddComponent <TweenVector2>();
            _tweenVec.OnTweenValue += OnTween;
            _tweenVec.OnDone       += OnTweenDone;
        }
예제 #2
0
    // Start is called before the first frame update
    void Start()
    {
        this.updateWorldSize();

        card = new DrawCard();

        tween = new TweenVector2();

        progress = onNormal;

        if (Application.platform == RuntimePlatform.WindowsEditor)
        {
            screenTouch = new WindowsEditorTouch();
        }
        else
        {
            screenTouch = new MobileTouch();
        }
    }
예제 #3
0
    // Start is called before the first frame update
    void Start()
    {
        Debug.LogFormat("screen width : {0}, height : {1}",Screen.width, Screen.height);
        Debug.LogFormat("Camera size : {0}, aspect : {1}", Camera.main.orthographicSize, Camera.main.aspect);

        this.updateWorldSize();

        card = new DrawCard();

        tween = new TweenVector2();

        progress = onNormal;

        if(Application.platform == RuntimePlatform.WindowsEditor)
        {
            screenTouch = new WindowsEditorTouch();
        }
        else
        {
            screenTouch = new MobileTouch();
        }
    }