///... private void Start() { var main = GameObject.Find("Main"); this.referenceBuffer = main.GetComponent <ReferenceBuffer>(); TargetManagerBehaviour ms = main.GetComponent <TargetManagerBehaviour>(); ///Adjusting the speed from the editor; var speedMultiplyer = ReferenceBuffer.Instance.EditorInput.NSSAllSpeedMultipyer; var slowMultiplayer = ReferenceBuffer.Instance.EditorInput.NSSAllSlowConstantsMultiplyer; this.maxCombatSpeed *= speedMultiplyer; this.newtonianThrusterForce *= speedMultiplyer; this.combatThrusterForce *= speedMultiplyer; ///Adjusting the slow down contants this.slowDowntConstant *= slowMultiplayer; this.speedingSlowDownConstant *= slowMultiplayer; this.slowingSlowDownConstant *= slowMultiplayer; ///Rotational Speed Stays constant for now; ///The script is on the parent this.cameraRef = myCamera.GetComponent <Camera>(); this.shipAnchorRef = gameObject; this.shipBodyRef = this.shipAnchorRef.transform.Find("Body").gameObject; this.cameraTarget = shipAnchorRef.transform.Find("CameraTarget").gameObject; this.cameraRef.GetComponent <NewtonianSpaceshipCamera>().target = cameraTarget.transform; var audioListener = myCamera.GetComponent <AudioListener>(); this.myCamera.SetActive(false); audioListener.enabled = false; this.mainCamera = Camera.main.gameObject; }
private void Start() { this.rb = ReferenceBuffer.Instance; rb.gl.CylinderBasePrefabStand1(); var player = rb.gl.PlayerWithCamStand1(); rb.InfoTextObject.GetComponent <Text>().text = ProblemDesctiptions.Tutorial1StartMethod2; rb.ShowCode.SetText(InitialCodes.Tutorial1StartMethod2); int baseY = 4; int baseX = 0; int baseZ = 0; int dist = 4; this.target = rb.gl.GenerateEntity(EntityType.Target, new Vector3(0, baseY, 0), PrimitiveType.Cube, Color.gray, null, "Target"); this.goals.Add(rb.gl.GenerateEntity(EntityType.NonTarget, new Vector3(baseX, baseY + dist, baseZ), PrimitiveType.Cube, Color.blue, null, "Goal")); this.goals.Add(rb.gl.GenerateEntity(EntityType.NonTarget, new Vector3(baseX, baseY - dist, baseZ), PrimitiveType.Cube, Color.blue, null, "Goal")); this.goals.Add(rb.gl.GenerateEntity(EntityType.NonTarget, new Vector3(baseX - dist, baseY, baseZ), PrimitiveType.Cube, Color.blue, null, "Goal")); this.goals.Add(rb.gl.GenerateEntity(EntityType.NonTarget, new Vector3(baseX + dist, baseY, baseZ), PrimitiveType.Cube, Color.blue, null, "Goal")); this.goals.Add(rb.gl.GenerateEntity(EntityType.NonTarget, new Vector3(baseX, baseY, baseZ - dist), PrimitiveType.Cube, Color.blue, null, "Goal")); this.goals.Add(rb.gl.GenerateEntity(EntityType.NonTarget, new Vector3(baseX, baseY, baseZ + dist), PrimitiveType.Cube, Color.blue, null, "Goal")); }
private void Start() { var main = GameObject.Find("Main"); this.focusManager = main.GetComponent <InputFocusManager>(); this.referenceBuffer = main.GetComponent <ReferenceBuffer>(); this.fileSwitcher = GameObject.Find("ShowAvailableFilesButton").GetComponent <ShowAvailableCSFiles>(); this.actionSwitcher = GameObject.Find("ShowActionsButton").GetComponent <ShowActionsBehaviour>(); this.showCode = GameObject.Find("ShowCodeButton").GetComponent <ShowCodeBehaviour>(); }
private void Start() { this.rb = ReferenceBuffer.Instance; rb.gl.CylinderBasePrefabStand1(); var player = rb.gl.PlayerWithCamStand1(); rb.InfoTextObject.GetComponent <Text>().text = ProblemDesctiptions.Tutorial1StartMethod1; rb.ShowCode.SetText(InitialCodes.Tutorial1StartMethod1); this.target = rb.gl.GenerateEntity(EntityType.Target, new Vector3(0, 0, 0), PrimitiveType.Cube, Color.gray, null, "Target"); this.goal = rb.gl.GenerateEntity(EntityType.NonTarget, new Vector3(0, 8, 0), PrimitiveType.Cube, Color.blue, null, "Goal"); }
private void Start() { this.rb = ReferenceBuffer.Instance; rb.gl.CylinderBasePrefabStand1(); var player = rb.gl.PlayerWithCamStand1(); rb.InfoTextObject.GetComponent <Text>().text = ProblemDesctiptions.Tutorial1StartMethod2; //rb.ShowCode.SetText(InitialCodes.Tutorial1StartMethod2); rb.ShowCode.SetText(""); this.target = rb.gl.GenerateEntity(EntityType.Target, new Vector3(0, 5, 0), PrimitiveType.Cube, Color.gray, null, "Some"); this.context = rb.gl.GenerateEntity(EntityType.Context, new Vector3(0, 0, 0), PrimitiveType.Sphere, Color.white, null, "Josh12"); this.context2 = rb.gl.GenerateEntity(EntityType.Context, new Vector3(0, 2, 0), PrimitiveType.Sphere, Color.white, null, "Josh13"); this.context.SetContextText("My Name is \"Josh12\" I want to be Color.Red"); this.context2.SetContextText("My Name is \"Josh13\" I want to be Higher"); this.CheckForSuccess(); }
public RBUiStateManager(ReferenceBuffer rb) { this.rb = rb; }
public GenerateLevel(TargetManagerBehaviour ms, ReferenceBuffer rb, GridManager gm = null) { this.ms = ms; this.rb = rb; this.gm = gm; }