void Awake() { _rectTransform = Target.GetComponent <RectTransform>(); _tweenVec = gameObject.AddComponent <TweenVector2>(); _tweenVec.OnTweenValue += OnTween; _tweenVec.OnDone += OnTweenDone; }
// 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(); } }
// 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(); } }