public override void Reset() { baseOrientation = BaseOrientation.LandscapeLeft; storeAngle = null; limitAngle = new FsmFloat { UseVariable = true }; smoothing = 5f; everyFrame = true; }
public void Setup() { _baseOrientation = GetOrientation(directionStat); _scrollRect = this.GetComponent <ScrollRect>(); _slotList = new List <UltimateSlot>(); if (_scrollRect.viewport != null) { screenResolution = new Vector2(Screen.width, Screen.height); ultimatePooling = new UltimatePooling(_statHolder, _scrollRect.content); //Clear up CleanUp(); _scrollViewport = _scrollRect.viewport; _scrollContent = _scrollRect.content; visibleSize = new Vector2(_scrollViewport.rect.width, _scrollViewport.rect.height); Debug.Log("_scrollViewport " + visibleSize); _scrollRect.vertical = directionStat == Direction.TopDown; _scrollRect.horizontal = directionStat != Direction.TopDown; } }