void Update()
 {
     if (!paused)
     {
         gameDeltaTime = gameTime.ConvertDeltaTime(Time.deltaTime);
         gameTime.AddTime(gameDeltaTime);
     }
 }
Example #2
0
    private void Update()
    {
        print("GameTime: " + gameTime.timeInHours);
        if (Input.GetKeyDown(KeyCode.Q))
        {
            gameTime.AddTime(696f);
        }

        if (Input.GetKeyDown(KeyCode.W))
        {
            gameTime.AddTime(0.5f);
        }

        if (Input.GetKeyDown(KeyCode.T))
        {
            gameTime.SetTime(23.5f);
        }

        if (Input.GetKeyDown(KeyCode.Y))
        {
            foreach (var stat in statList)
            {
                print(stat.placeVisited);
            }
        }

        if (Input.GetKeyDown(KeyCode.S))
        {
            SaveSystem.SaveData(instance);
        }

        if (currentProfile == null)
        {
            return;
        }

        foreach (var location in locationsList)
        {
            print(location.locationInformation.locationName);
            location.avatarLocation.sprite = currentProfile.profileIcon;
            location.ShowAvatar(false);
        }
        currentLocation.ShowAvatar(true);
    }