void Start() { if (GameStateView.HasState(GameState.gameReloaded)) { EventCoordinator.TriggerEvent(EventName.System.SceneLoaded(), GameMessage.Write()); } }
void Update() { if (!GameStateView.HasState(GameState.started) || GameStateView.HasState(GameState.ended)) { return; } HandleInput(); UpdateReleased(); UpdateVolume(); transform.localPosition = new Vector3(this.start.x, (this.verticalOffset - this.swipeRadius) * this.AnchorMultiplier + this.start.y, 0); transform.localRotation = Quaternion.Euler(0, 0, -this.rotation * this.AnchorMultiplier); }