public void Awake(){ //platformControllerScript = PlatformController.GetComponent<Spawner> (); platform = GameObject.Find("PlatformController"); platformControllerScript = platform.GetComponent<TestSpawner>(); player = GameObject.FindGameObjectWithTag("Player"); playerHealth = player.GetComponent<PlayerHealthController>(); }
void Awake() { // Set up the reference. GameObject stui = GameObject.Find("ScoreTextUI"); scoreText = stui.GetComponent <Text>(); platformController = GameObject.Find("PlatformController"); testSpawner = platformController.GetComponent <TestSpawner>(); player = GameObject.FindGameObjectWithTag("Player"); playerHealth = player.GetComponent <PlayerHealthController>(); problemSolverObject = GameObject.Find("ProblemSolver"); // Reset the score. score = 0; GameObject canvas = GameObject.Find("Canvas"); startAnim = canvas.GetComponent <Animator>(); GameObject edui = GameObject.Find("FinalScoreText"); finalScoreText = edui.GetComponent <Text>(); }
void Start() { gameOver = false; testSpawner = GameObject.FindGameObjectWithTag("Respawn").GetComponentInParent <TestSpawner>(); gameStateManager = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameStateManager>(); lootManager = GetComponent <LootManager> (); }
public ParticleTestManager(State stateref) : base(stateref, "ParticleTestManager") { _controlHandler = stateref.GetService <ControlHandler>(); _body = new Body(this, "EmitterBody"); Spawner = new TestSpawner(this, "Spawner"); _moveCursor = new GamePadAnalog(this, "MoveCursor", Sticks.Left, PlayerIndex.One); _emitButton = new GamepadInput(this, "EmitButton", Buttons.B, PlayerIndex.One); }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } // DontDestroyOnLoad(gameObject); }
void Awake() { // Setup the UI GameObject stui = GameObject.Find("ScoreText"); scoreText = stui.GetComponent <Text>(); GameObject edui = GameObject.Find("FinalScoreText"); finalScoreText = edui.GetComponent <Text>(); GameObject kText = GameObject.Find("KinectText"); kinectConnectedText = kText.GetComponent <Text>(); GameObject oText = GameObject.Find("OculusText"); oculusConnectedText = oText.GetComponent <Text>(); GameObject ovrcanvas = GameObject.Find("UICanvas"); startAnim = ovrcanvas.GetComponent <Animator>(); score = 0; GameObject es = GameObject.Find("EventSystem"); lookInput = es.GetComponent <LookInputModule>(); //Disable Game over Button GameObject gameOverButton = GameObject.Find("RestartButton"); Button b = gameOverButton.GetComponent <Button>(); gameOverButton.SetActive(false); //Setup Player platformController = GameObject.Find("PlatformController"); testSpawner = platformController.GetComponent <TestSpawner>(); player = GameObject.Find("FPSPreFab"); infinitePlayerController = player.GetComponent <InfinitePlayerController>(); playerHealth = player.GetComponent <PlayerHealthController>(); //Setup Kinect bodyManagerComponent = bodyManager.GetComponent <BodySourceManager>(); handManagerComponent = handController.GetComponent <HandGestureTrigger>(); //Setup Oculus GameObject ovrCameraRig = GameObject.Find("OVRCameraRig"); oculusOVRManager = ovrCameraRig.GetComponent <OVRManager>(); problemSolverObject = GameObject.Find("ProblemSolver"); }
//SEPERATED //private TestPlatformController platformControllerScript; // Use this for initialization void Start () { platformControllerScript = GameObject.Find ("PlatformController").GetComponent<TestSpawner> (); }
//SEPERATED //private TestPlatformController platformControllerScript; // Use this for initialization void Start() { platformControllerScript = GameObject.Find("PlatformController").GetComponent <TestSpawner> (); }
public ParticleTestManager(State stateref) : base(stateref, "ParticleTestManager") { _controlHandler = stateref.GetService<ControlHandler>(); _body = new Body(this, "EmitterBody"); Spawner = new TestSpawner(this, "Spawner"); _moveCursor = new GamePadAnalog(this, "MoveCursor", Sticks.Left, PlayerIndex.One); _emitButton = new GamepadInput(this, "EmitButton", Buttons.B, PlayerIndex.One); }
void Awake() { // Set up the reference. GameObject stui = GameObject.Find ("ScoreTextUI"); scoreText = stui.GetComponent<Text>(); platformController = GameObject.Find("PlatformController"); testSpawner = platformController.GetComponent<TestSpawner>(); player = GameObject.FindGameObjectWithTag("Player"); playerHealth = player.GetComponent<PlayerHealthController>(); problemSolverObject = GameObject.Find ("ProblemSolver"); // Reset the score. score = 0; GameObject canvas = GameObject.Find("Canvas"); startAnim = canvas.GetComponent<Animator>(); GameObject edui = GameObject.Find("FinalScoreText"); finalScoreText = edui.GetComponent<Text>(); }
void Awake () { // Setup the UI GameObject stui = GameObject.Find("ScoreText"); scoreText = stui.GetComponent<Text>(); GameObject edui = GameObject.Find("FinalScoreText"); finalScoreText = edui.GetComponent<Text>(); GameObject kText = GameObject.Find("KinectText"); kinectConnectedText = kText.GetComponent<Text>(); GameObject oText = GameObject.Find("OculusText"); oculusConnectedText = oText.GetComponent<Text>(); GameObject ovrcanvas = GameObject.Find("UICanvas"); startAnim = ovrcanvas.GetComponent<Animator>(); score = 0; GameObject es = GameObject.Find("EventSystem"); lookInput = es.GetComponent<LookInputModule>(); //Disable Game over Button GameObject gameOverButton = GameObject.Find("RestartButton"); Button b = gameOverButton.GetComponent<Button>(); gameOverButton.SetActive(false); //Setup Player platformController = GameObject.Find("PlatformController"); testSpawner = platformController.GetComponent<TestSpawner>(); player = GameObject.Find("FPSPreFab"); infinitePlayerController = player.GetComponent<InfinitePlayerController>(); playerHealth = player.GetComponent<PlayerHealthController>(); //Setup Kinect bodyManagerComponent = bodyManager.GetComponent<BodySourceManager>(); handManagerComponent = handController.GetComponent<HandGestureTrigger>(); //Setup Oculus GameObject ovrCameraRig = GameObject.Find("OVRCameraRig"); oculusOVRManager = ovrCameraRig.GetComponent<OVRManager>(); problemSolverObject = GameObject.Find("ProblemSolver"); }