예제 #1
0
 void Start()
 {
     if (GameStateView.HasState(GameState.gameReloaded))
     {
         EventCoordinator.TriggerEvent(EventName.System.SceneLoaded(), GameMessage.Write());
     }
 }
예제 #2
0
    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);
    }