private void Start() { playerClicks = 0; isRotating = false; Shuffle(); instance = this.GetComponent <GateControl>(); gameManager = this.GetComponent <GameControl>(); tempCard = GameObject.FindGameObjectWithTag("medousa"); tempTag = "medousa"; }
public Game1() { Login = new LoginScene(Content); graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; IsMouseVisible = true; graphics.PreferredBackBufferWidth = Constants.VIEWPORT_WIDTH; graphics.PreferredBackBufferHeight = Constants.VIEWPORT_HEIGHT; Gate = new GateControl(Content); button = new DemoButton(); }
public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; IsMouseVisible = true; graphics.PreferredBackBufferWidth = Constants.VIEWPORT_WIDTH; graphics.PreferredBackBufferHeight = Constants.VIEWPORT_HEIGHT; Gate = new GateControl(Content); //demo menu = new MenuScene(Content); }
// Use this for initialization void Start() { LeverActivated = false; gate_control = Gate.GetComponent<GateControl> (); //Determinate rotations UnactiveRotation = transform.rotation; transform.Rotate (45f, 0f, 0f); ActiveRotation = transform.rotation; transform.rotation = UnactiveRotation; TargetRotation = UnactiveRotation; rotate_speed = 3.0f; }
private void Awake() { gateControl = this.GetComponent <GateControl>(); sm = this.GetComponent <ScenesManager>(); }