Firstborn/Assets/InfinityPBR/Demo Scripts/photoController.cs
Schaken-Mods b8ab71969a Finished lockpicking, tied it to the Skills system
Finished lockpicking. tied it to the Attributes system. when you pick a lock you gain dexterity, the higher your dexterity, the easier it is to pick locks.
2023-05-05 22:02:18 -05:00

70 lines
1.8 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class photoController : MonoBehaviour
{
public string photoName;
public int superSize = 4;
public GameObject target;
public Canvas canvas;
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.P))
{
//canvas.gameObject.SetActive(false);
ScreenCapture.CaptureScreenshot(photoName + "_" + Time.timeSinceLevelLoad + ".png", superSize);
// canvas.gameObject.SetActive(true);
}
if (Input.GetKey(KeyCode.T))
{
if (Input.GetKeyDown(KeyCode.Alpha0))
{
Time.timeScale = 0;
}
if (Input.GetKeyDown(KeyCode.Alpha1))
{
Time.timeScale = .1f;
}
if (Input.GetKeyDown(KeyCode.Alpha2))
{
Time.timeScale = .2f;
}
if (Input.GetKeyDown(KeyCode.Alpha3))
{
Time.timeScale = .3f;
}
if (Input.GetKeyDown(KeyCode.Alpha4))
{
Time.timeScale = .4f;
}
if (Input.GetKeyDown(KeyCode.Alpha5))
{
Time.timeScale = .5f;
}
if (Input.GetKeyDown(KeyCode.Alpha6))
{
Time.timeScale = .6f;
}
if (Input.GetKeyDown(KeyCode.Alpha7))
{
Time.timeScale = .7f;
}
if (Input.GetKeyDown(KeyCode.Alpha8))
{
Time.timeScale = .8f;
}
if (Input.GetKeyDown(KeyCode.Alpha9))
{
Time.timeScale = .9f;
}
}
}
}