// no longer needed //public A() //{ //} public A(SomeStuff stuff) { if (stuff != null) { // init stuff } }
public void RestartScript() { SpideyScript = GameObject.Find("Spidey").GetComponent <SomeStuff>(); DbScript = GameObject.Find("Main Camera").GetComponent <DataBase>(); PauseScript = GameObject.Find("Pause Button").GetComponent <PauseButton>(); Player.transform.position = SpideyScript.StartPos; GameObject[] PumpkinDestroy; PumpkinDestroy = GameObject.FindGameObjectsWithTag("Block"); for (int i = 0; i < PumpkinDestroy.Length; i++) { Destroy(PumpkinDestroy[i]); } DbScript.PumpkinDistanceses(); DbScript.PlayerMoveUp = true; PauseScript.IsGamePaused = false; Invoke("CountDownClose", 6f); if (gameObject.name == "Restart Button II") { SoundScriptt = GameObject.Find("Sound Button").GetComponent <SoundScript>(); SpideyScript.anim.speed = 1f; PauseScript.IsGamePaused = false; SpideyScript.Score = 0; } }
public B(SomeStuff stuff) : base(stuff) { if (stuff != null) { // init stuff more } }
void InvokeCalculation() { SpideyScript = GameObject.Find("Spidey").GetComponent <SomeStuff>(); for (int i = 0; i < StartClicks.Length - 1; i++) { StartClicks[i].SetActive(true); } SpideyScript.IsGameStartSpace = SpideyScript.IsGameStartPumpkin = true; StartClicks[StartClicks.Length - 1].SetActive(false); }
public Attr(int[] up0, ulong up1, int up2, double up3, SomeStuff up4, String up5) { name = "multiple2"; unnamed_list = up0[0].ToString() + "\t|" + up1.ToString() + "\t|" + up2.ToString() + "\t|" + String.Format("{0:N2}", up3) + "\t|" + up4.ToString() + "\t|" + up5; }
public Attr(int[] up0, System.Type[] up1, int up2, float up3, SomeStuff up4, String up5) { name = "multiple1"; unnamed_list = up0[0].ToString() + "\t|" + up1[0].ToString() + "\t|" + up2.ToString() + "\t|" + String.Format("{0:N2}", up3) + "\t|" + up4.ToString() + "\t|" + up5; }
public void ValidateAndCollect(T dpj) { if (dpj.HasErrors == false && !(dpj.Equals(null))) { SomeStuff.Add(dpj); } else { StuffOut.Add(dpj); } }
void CountDownCalculation() { SpideyScript = GameObject.Find("Spidey").GetComponent <SomeStuff>(); SoundScriptt = GameObject.Find("Sound Button").GetComponent <SoundScript>(); PauseScript = GameObject.Find("Pause Button").GetComponent <PauseButton>(); SoundScriptt.SoundImageChange(); SpideyScript.anim.speed = 1f; SpideyScript.IsGameStartSpace = true; PauseScript.IsGamePaused = false; CountDown.SetActive(false); Pause.SetActive(true); }
public void Scrpits() { SoundScriptt = GameObject.Find("Sound Button").GetComponent <SoundScript>(); SpideyScript = GameObject.Find("Spidey").GetComponent <SomeStuff>(); // Stop Sound SoundScriptt.auidos.volume = 0f; SoundScriptt.Sound_On = false; // SpideyScript.anim.speed = 0f; IsGamePaused = true; SpideyScript.IsGameStartSpace = false; //SoundScriptt.Sound_On = false; }
public void Execute(Entity entity, int index, ref MovementData movemont, [ReadOnly] ref Translation translation) { var NodePosition2D = nodeTranslations[Destinations[entity].destination].Value; var EnemyPosition2D = translation.Value; NodePosition2D.y = 0f; EnemyPosition2D.y = 0f; if (SomeStuff.CalculateDistance(nodeTranslations[Destinations[entity].destination].Value, translation.Value) <= 1f) { var newDestination = Destinations[Destinations[entity].destination]; Destinations[entity] = newDestination; movemont.direction = SomeStuff.CalculateDirection(translation.Value, nodeTranslations[Destinations[entity].destination].Value); } else if (SomeStuff.bool3Tobool(movemont.direction == float3.zero)) { //enemy won't calculate direction again whe something else change enemy's position movemont.direction = SomeStuff.CalculateDirection(translation.Value, nodeTranslations[Destinations[entity].destination].Value); } movemont.direction = SomeStuff.CalculateDirection(translation.Value, nodeTranslations[Destinations[entity].destination].Value); }
void GameOver() { PlayerScript = GameObject.Find("Spidey").GetComponent <SomeStuff>(); PauseScript = GameObject.Find("Pause Button").GetComponent <PauseButton>(); SoundButton = GameObject.Find("Sound Button").GetComponent <SoundScript>(); GameObject[] PumpkinDestroy; PumpkinDestroy = GameObject.FindGameObjectsWithTag("Block"); for (int i = 0; i < PumpkinDestroy.Length; i++) { Destroy(PumpkinDestroy[i]); } PauseScript.IsGamePaused = false; PlayerScript.Falling = false; PlayerMoveUp = false; PlayerScript.IsGameStartSpace = false; if (PlayerScript.Score > (PlayerPrefs.GetInt("BestScore") / 2)) { int rnd = Random.Range(0, HighMemes.Length); SpideyMeme.sprite = HighMemes[rnd]; } else { int rnd = Random.Range(0, BadMemes.Length); SpideyMeme.sprite = BadMemes[rnd]; } SoundButton.auidos.Stop(); if (PlayerScript.Score > PlayerPrefs.GetInt("BestScore")) // { // Save Best Score. PlayerPrefs.SetInt("BestScore", PlayerScript.Score); // NewScore.SetActive(true); } BestScore_EndgameText.text = "Best Score:\n" + PlayerPrefs.GetInt("BestScore").ToString(); Score_EndgameText.text = "Score: " + PlayerScript.Score.ToString(); Player.transform.position = PlayerScript.StartPos; // Restart the player's position. PlayerScript.RestartPumpkin(); PlayerScript.Score = 0; }
public Attr(SomeStuff up0) { name = "enum"; unnamed_list = up0.ToString(); }
void Start() { SSScpirt = GameObject.FindGameObjectWithTag("Player").GetComponent <SomeStuff>(); SoundScripT = GameObject.Find("Sound Button").GetComponent <SoundScript>(); PauseScrpit = GameObject.Find("Pause Button").GetComponent <PauseButton>(); }