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

            _tweenVec = gameObject.AddComponent <TweenVector2>();
            _tweenVec.OnTweenValue += OnTween;
            _tweenVec.OnDone       += OnTweenDone;
        }
Example #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();
        }
    }
Example #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();
        }
    }