// Use this for initialization void Start() { manager = GameObject.Find("GameManager").GetComponent <CS_Gamemanager>(); gameManager = FindObjectOfType <CS_Gamemanager>(); Movement = GameObject.FindGameObjectWithTag("Player").GetComponent <CS_Player_Movment>(); movement = GameObject.FindGameObjectWithTag("Player").GetComponent <movment>(); CS_Notify.Register(this, "BiggerCoins"); CS_Notify.Register(this, "ShotCoins"); }
void Start() { leftOarScript = GameObject.Find("LeftOars").GetComponent <CS_OarLeftScript>(); rightOarScript = GameObject.Find("RightOars").GetComponent <CS_OarRightScript>(); CS_Notify.Register(this, "StartGame"); CS_Notify.Register(this, "StopMoving"); CS_Notify.Register(this, "MovementUpgrade"); }
void Start() { CS_Notify.Register(this, "ChangeStage"); playerScript = player.GetComponent <CS_Player_Movment>(); ChangeStage(); progressPlayer.localPosition = new Vector3(progressPlayer.localPosition.x, -300, progressPlayer.localPosition.z); progressEnemy.localPosition = new Vector3(progressEnemy.localPosition.x, -300, progressEnemy.localPosition.z); lastPlayerY = player.transform.position.y; lastEnemyY = tempEnemy.transform.position.y; }
// Use this for initialization void Start() { CS_Notify.Register(this, "StartTimer"); pl = GameObject.FindGameObjectWithTag("Player").GetComponent <CS_Player>(); timeToDie = 300f; timerHasStarted = false; timeToBlink = false; csPB = GameObject.Find("ProgressBar").GetComponent <CS_PrograssBar>(); csGTTIP = GameObject.Find("GTTI prompt").GetComponent <CS_GTTIPrompt>(); foreach (Transform child in this.transform) { if (child.tag == ("Text")) { dCounter.Add(child.GetComponent <Text>()); } } for (int i = 0; i < dCounter.Count; i++) { dCounter[i].text = ""; } foreach (Transform child in this.transform) { if (child.tag == "Image") { images.Add(child); } } foreach (Transform child in this.transform) { if (child.tag == "Arrow") { arrows.Add(child); } } for (int i = 0; i < images.Count; i++) { images[i].GetComponent <Image>().enabled = false; } for (int i = 0; i < arrows.Count; i++) { arrows[i].GetComponent <Image>().enabled = false; } }
void Start() { coins = GameObject.Find("GameManager").GetComponent <CS_Gamemanager>(); rend = this.gameObject.GetComponent <SpriteRenderer>(); whichDamagePoint = 0; CS_Notify.Register(this, "EndGame"); deathAnimation = GetComponent <Animator>(); foreach (Transform child in this.transform) { if (child.tag == "Damage") { damagePoints.Add(child); child.GetComponent <ParticleSystem>().Stop(); } } highScoreInput = GameObject.Find("HighScoreInput"); highScoreInput.SetActive(false); }
void Start() { CS_Notify.Register(this, "EnemyBoatStart"); player = GameObject.Find("Player").GetComponent <Transform>(); }
void Start() { CS_Notify.Register(this, "BiggerCoinsTrue"); CS_Notify.Register(this, "ShotCoinsTrue"); }
void Start() { appearTimes = 0; CS_Notify.Register(this, "NextTile"); position = player.position; }
void Start() { CS_Notify.Register(this, "CannonUpgrad"); }
void Start() { CS_Notify.Register(this, "ChangeToArenaCamera"); CS_Notify.Register(this, "ZoomOut"); cameraScript = main.GetComponent <CS_Camera_Movment>(); }
void Start() { CS_Notify.Register(this, "StartGame"); CS_Notify.Register(this, "StopMoving"); rb = GetComponent <Rigidbody2D>(); }