This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LightOrDense | |
{ | |
public static void main(String[] args) | |
{ | |
int lightWins = 0; //Vexilla defensor - light cover: +1 to saving throws, invluns not affected | |
int denseWins = 0; //Vexilla magnifica - dense cover: -1 to hit | |
int insigLightWins = 0; | |
int ties = 0; | |
int spins = 1000000; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
using UnityEngine.InputSystem; | |
using TMPro; | |
public class PlayerController2 : MonoBehaviour | |
{ | |
public float speed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Appear : MonoBehaviour | |
{ | |
public GameObject ball; | |
public int count; // number of cubes needed to make this object appear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine.UI; | |
using UnityEngine; | |
public class TimerScript : MonoBehaviour | |
{ | |
//This script should be attached to a UI Text element | |
public Text timerText; | |
public bool keepCounting; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class CameraController : MonoBehaviour { | |
public GameObject player; | |
public static int rotPosition = 0; | |
private Vector3 offset; | |
private bool rotating = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class PlayerController : MonoBehaviour { | |
public float speed; | |
public int numCubes; | |
public Text countText; | |
public Text winText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class PlayerController : MonoBehaviour { | |
public float speed; | |
public float jumpHeight; | |
public Text countText; | |
public Text winText; |