void Start() { playerManager = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>(); timeMaster = GameObject.FindGameObjectWithTag("TimeMaster").GetComponent <TimeMaster>(); camShaker = GameObject.FindGameObjectWithTag("CameraShaker").GetComponent <Shake>(); deathSound = gameObject.GetComponent <AudioSource>(); }
public AverageTimer(TimeMaster timeMaster, int reportInterval, string name) { this.timeMaster = timeMaster; this.reportInterval = reportInterval; this.name = name; this.lastReportTime = timeMaster.GetTime(); }
void Awake() { //Crear instancia de nuestros scripts de fecha instance = this; //Establece nuestras preferencias de jugador para guardar la ubicación saveLocation = "Ultimafecha1"; }
// Use this for initialisation void Awake() { // Create instance of our TimeMaster script instance = this; // Set our player prefs to the save location saveLocation = "lastSaveDate1"; }
// Start is called before the first frame update void Start() { timerText = GetComponentInChildren <Text>(); timeMaster = GameObject.Find("Master").GetComponent <TimeMaster>(); minutes = timeMaster.Minutes; seconds = timeMaster.Seconds; oldSeconds = seconds; }
void Start() { rb = gameObject.GetComponent <Rigidbody2D>(); rb.velocity = transform.right * speed; killPlayer = gameObject.GetComponent <KillPlayer>(); playerManager = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>(); timeMaster = GameObject.FindGameObjectWithTag("TimeMaster").GetComponent <TimeMaster>(); camShaker = GameObject.FindGameObjectWithTag("CameraShaker").GetComponent <Shake>(); }
// Use this for initialization void Start() { timeMaster = TimeMaster.Instance; for (int i = 1; i < pads.Length; i++) { goalPosts.Add((pads [i].transform.position.x + pads [i - 1].transform.position.x) / 2); // Debug.Log (goalPosts [i - 1]); } }
void Start() { camControler = GameObject.FindGameObjectWithTag("CameraController").GetComponent <CameraControler>(); timeMaster = GameObject.FindGameObjectWithTag("TimeMaster").GetComponent <TimeMaster>(); cpMaster = GameObject.FindGameObjectWithTag("cpMaster").GetComponent <CheckpointMaster>(); resetLevel = GameObject.FindGameObjectWithTag("LevelReset").GetComponent <ResetLevel>(); levelBlockade = GameObject.FindGameObjectWithTag("LevelBlockade"); levelBlockade.SetActive(false); }
public void Play() { Debug.Log("Playing"); TimeMaster time = TimeMaster.Instance; int delay = 1; music.playFromBeginning(delay); calibrator.Play(delay * 1000 + time.GetTime()); }
// Use this for initialization void Awake () { //create instance of Timemaster script instance = this; //set playerprefs to save location saveLocation = "LastSavedDate1"; }
public override void GetKilled(Vector2 shotDirection) { TimeMaster timeMaster = FindObjectOfType <TimeMaster>(); if (timeMaster.Rewinding) { return; } timeMaster.StartRewind(); }
// Use this for initialization void Start() { timeMaster = TimeMaster.Instance; debugPanel = DebugPanel.Instance; PatternLoader patternLoader = new PatternLoader(); pattern = patternLoader.loadPattern(GameManager.Instance.currentMidi); Debug.LogFormat("Total scorable {0}", pattern.totalScorable()); comboCalculator.setMaxScore(pattern.totalScorable()); }
public void checkContent() { for (int i = 0; i < _timeMasterList.Count; i++) { TimeMaster tm = _timeMasterList [i]; DebugLogger.Log("[" + i + "] SCORE : " + tm.SCORE_IS_LOWER_THAN + " ADD_TIME : " + tm.ADD_TIME); } for (int i = 0; i < _commentMasterList.Count; i++) { CommentMaster m = _commentMasterList [i]; DebugLogger.Log("[" + i + "] ID : " + m.ID + " SCORE_IS_OVER : " + m.SCORE_IS_OVER + " COMMENT:" + m.COMMENT); } }
// Use this for initialization void Start() { debugPanel = DebugPanel.Instance; timeMaster = TimeMaster.Instance; if (UseRealTimeInput) { timeMaster = FindObjectOfType <TimeMaster> (); averageTimer = timeMaster.CreateAverageTimer(5000, "input"); #if UNITY_EDITOR_OSX Thread thread = new Thread(new ThreadStart(PollKeysMac)); thread.Start(); #endif } }
void Reset() { timeshiftEvents = GetComponent <TimeshiftEvents>(); if (!timeshiftEvents) { timeshiftEvents = gameObject.AddComponent <TimeshiftEvents>(); } source = GetComponent <AudioSource>(); if (!source) { source = gameObject.AddComponent <AudioSource>(); } #if UNITY_EDITOR UnityEventTools.AddPersistentListener(timeshiftEvents.TimeshiftStart, TimeshiftStart); UnityEventTools.AddPersistentListener(timeshiftEvents.TimeshiftStop, TimeshiftStop); #endif timeMaster = FindObjectOfType <TimeMaster>(); }
public void BindTimeMaster() { dt = new DataTable(); DataSet ds = new DataSet(); objtime = new TimeMaster(); da = new SqlDataAdapter("select * from TimeMaster", strConnString); //ds = objserver.GetDateset("select * from laborefficiency"); da.Fill(dt); da.Fill(ds); //Grid_plan.DataSource = ds.Tables[0]; //Grid_plan.DataBind(); if (ds.Tables[0].Rows.Count > 0) { paging.DataSource = dt.DefaultView; if (ds.Tables[0].Rows.Count > 8) { paging.AllowPaging = true; paging.PageSize = 8; paging.CurrentPageIndex = CurrentPage; ViewState["totalpage"] = paging.PageCount; link_previous.Enabled = !paging.IsFirstPage; link_next.Enabled = !paging.IsLastPage; } else { div_paging.Visible = false; } gridTimemaster.DataSource = paging; gridTimemaster.DataBind(); div_time.Visible = true; div_actualerror.Visible = false; createpaging(); } else { div_time.Visible = false; div_actualerror.Visible = true; } }
void Start() { rb2d = gameObject.GetComponent <Rigidbody2D>(); rb2d.isKinematic = false; anim = gameObject.GetComponent <Animator>(); if (GameObject.FindGameObjectWithTag("cpMaster") != null) { checkpointMaster = GameObject.FindGameObjectWithTag("cpMaster").GetComponent <CheckpointMaster>(); } if (GameObject.FindGameObjectWithTag("DeathBed") != null) { deadlyObjects = GameObject.FindGameObjectWithTag("DeathBed").GetComponent <KillPlayer>(); } if (GameObject.FindGameObjectWithTag("CameraShaker") != null) { cameraShaker = GameObject.FindGameObjectWithTag("CameraShaker").GetComponent <Shake>(); } if (GameObject.FindGameObjectWithTag("TimeMaster") != null) { timeMaster = GameObject.FindGameObjectWithTag("TimeMaster").GetComponent <TimeMaster>(); } if (GameObject.FindGameObjectWithTag("LevelReset") != null) { resetLevel = GameObject.FindGameObjectWithTag("LevelReset").GetComponent <ResetLevel>(); } if (GameObject.FindGameObjectWithTag("GameOverScreen") != null) { gameOverScreen = GameObject.FindGameObjectWithTag("GameOverScreen"); gameOverScreen.SetActive(false); } dash = gameObject.GetComponent <Dash>(); }
protected void btn_save_Click(object sender, ImageClickEventArgs e) { conn.Open(); try { string filepath = ""; string directoryPath = ""; string productID = DropPartNo.SelectedValue.ToString(); if (fup_file.PostedFile.FileName == "") { filepath = ""; } else { directoryPath = Server.MapPath("~/TimeMaster/" + productID + "/" + DropOperation.SelectedItem + "/"); if (!Directory.Exists(directoryPath)) { Directory.CreateDirectory(directoryPath); } string strFile = DateTime.Now.ToString("dd_MMM_yyhhmm") + "_" + System.IO.Path.GetFileName(fup_file.PostedFile.FileName); fup_file.PostedFile.SaveAs((directoryPath + strFile)); filepath = directoryPath + strFile; } //using (SqlCommand cmd = new SqlCommand()) //{ // cmd.Connection = conn; // cmd.CommandType = CommandType.StoredProcedure; // cmd.CommandText = "InsertTimeMaster"; // cmd.Parameters.AddWithValue("@partno", DropPartNo.Text.Trim()); // cmd.Parameters.AddWithValue("@operation", DropOperation.Text.Trim()); // cmd.Parameters.AddWithValue("@bottlenecktime", TxtBottleNeckTime.Text.Trim()); // cmd.Parameters.AddWithValue("@tt", TxtTt.Text.Trim()); // cmd.ExecuteNonQuery(); // BindTimeMaster(); // Clear(); // //gridTimemaster.DataBind(); // // gridTimemaster.DataSource = ds.Tables[0]; // // gridTimemaster.DataBind(); // ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('Saved Successfully');", true); // clearcontrols(); // // popup.Hide(); objtime = new TimeMaster(); objcontext = new QualitySheetdclassDataContext(); ds = objserver.GetDateset("select * from TimeMaster where PartNo='" + DropPartNo.Text.ToString() + "' and Operation='" + DropOperation.Text.ToString() + "'"); if (ds.Tables[0].Rows.Count > 0) { var query = (from table in objcontext.TimeMasters where table.PartNo == DropPartNo.Text.ToString() select table).FirstOrDefault(); if (query != null) { query.PartNo = DropPartNo.Text.ToString(); query.Operation = DropOperation.Text.ToString(); query.BottleNecktime = Convert.ToDecimal(TxtBottleNeckTime.Text.ToString()); query.tt = Convert.ToDecimal(TxtTt.Text.ToString()); objcontext.SubmitChanges(); clearcontrols(); BindTimeMaster(); } } else { objtime.PartNo = DropPartNo.Text.ToString(); objtime.Operation = DropOperation.Text.ToString(); objtime.BottleNecktime = Convert.ToDecimal(TxtBottleNeckTime.Text.ToString()); objtime.tt = Convert.ToDecimal(TxtTt.Text.ToString()); objcontext.TimeMasters.InsertOnSubmit(objtime); objcontext.SubmitChanges(); ClientScript.RegisterStartupScript(Page.GetType(), "mykey", "alert('Data Submitted Successfuly !');", true); clearcontrols(); BindTimeMaster(); } } catch (Exception ex) { } finally { } }
void Start() { cpMaster = GameObject.FindGameObjectWithTag("cpMaster").GetComponent <CheckpointMaster>(); timeMaster = GameObject.FindGameObjectWithTag("TimeMaster").GetComponent <TimeMaster>(); }
// void Awake(){ // Application.targetFrameRate = 1; // QualitySettings.vSyncCount = 0; // } // // Use this for initialization void Start() { debugPanel = DebugPanel.Instance; timeMaster = TimeMaster.Instance; }
public StateMachineTimerLoop(TimeMaster TM, RaftEntitySettings settings, RaftStateMachine stateMachine) { this.TM = TM; this.entitySettings = settings; this.stateMachine = stateMachine; }
void Start() { timeMaster = GameObject.FindGameObjectWithTag("TimeMaster").GetComponent <TimeMaster>(); }
public void connectToClock() { TimeMaster timeMaster = GameObject.FindObjectOfType <TimeMaster> (); timeMaster.subscribe(this); }
// Use this for initialization void Awake() { instance = this; saveLocation = "LastSavedDate1"; }
void Awake() { instance = this; saveLocation = "lastSavedDate"; Debug.Log(DateTime.Now); }
void Awake() { instance = this; saveLocation = "lastSavedData"; }