This file contains hidden or 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 PositionConstraint : MonoBehaviour | |
{ | |
public Vector3 targetPosition; // The current position to constraint to, can be set manually if the target Transform is null | |
public Transform targetTransform; // Current target transform to constrain to, can be left null for use of provided Vector3 | |
public Vector3 offset; | |
public bool |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using UnityEngine.UI; | |
public class GameDirector : MonoBehaviour | |
{ | |
//variables | |
public bool canControl = true; //control lock, if false, player can't click game buttons | |
public int buttonPressed = 0; |
NewerOlder