public void Start() { levelLogic = GameObject.FindGameObjectWithTag("LevelMnanager").GetComponent <LevelLogic>(); player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); clic = GetComponent <AudioSource>(); //options.SetActive(false); }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); cam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <MainCamera>(); explosionRange = 0; preExplosionEffect.SetActive(false); preExplosionEffect2.SetActive(false); explosionBall.SetActive(false); }
// Use this for initialization void Start() { levelLogic = GameObject.FindGameObjectWithTag("LevelMnanager").GetComponent <LevelLogic>(); levelOptions = GameObject.FindGameObjectWithTag("LevelOptions").GetComponent <LevelOptions>(); player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); textObj.SetActive(true); allChristals.SetActive(false); player.isLifeDecreasing = false; videoNumber = levelOptions.videoNumber; }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); cam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <MainCamera>(); thisImage = GetComponent <Image>(); beat = GetComponent <AudioSource>(); glowAlpha = 1; glowState = 0; dyingSound.volume = 0; }
// Use this for initialization void Start() { Physics2D.queriesStartInColliders = true; currentVelocity = enemieVelocity; target = GameObject.FindGameObjectWithTag("Player").transform; player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); rb = GetComponent <Rigidbody2D>(); directionDelay = 0.3f; currentDirectionDelay = directionDelay; jumpTimer = jumpDelay; isJumpActive = true; jumpDelay = 0.4f; isGrounded = true; huntRange = 5; }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); if (isIntroDisabled == true) { player.isIntroEnded = true; } if (tileColor == 0) { tilesMaterial.SetTexture("_MainTex", tileColor0); } else if (tileColor == 1) { tilesMaterial.SetTexture("_MainTex", tileColor1); } if (isSword == true) { player.isPlayerOverpowered = true; player.swordMesh.SetActive(true); player.isLifeDecreasing = true; } else { player.isLifeDecreasing = false; } if (isWallSlide == true) { player.isPlayerHaveWallSlide = true; } if (isAngularSlide == true) { player.isPlayerHaveAngularSlide = true; } player.levelSpawners = levelSpawners; }
// Use this for initialization void Start() { Player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); //score = GameObject.FindGameObjectWithTag("Manager").GetComponent<ScoreSystem>(); lifeIndicator = GameObject.FindGameObjectWithTag("LifeIndicator").GetComponent <LifeIndicator>(); explosionParticles.SetActive(false); //healParticles.SetActive(false); healParticles.Stop(); hitPoint.SetActive(true); counter = maxEnemies; InvokeRepeating("Spawn", spawnRate, spawnRate); if (isDestroyed) { if (isDestroyedState) { hitPoint.SetActive(false); isDestroyedState = false; CancelInvoke(); } } }
void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); }
void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); cam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <MainCamera>(); lifeIndicator = GameObject.FindGameObjectWithTag("LifeIndicator").GetComponent <LifeIndicator>(); }
// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); cam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <MainCamera>(); playerObj = GameObject.FindGameObjectWithTag("PlayerGraphics"); }
// Use this for initialization void Start() { Player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); score = GameObject.FindGameObjectWithTag("Manager").GetComponent <ScoreSystem>(); }
// Use this for initialization void Start() { thisRenderer = GetComponent <Image>(); player = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMOD>(); thisRenderer.color = Color.white; }
void Start() { player = GetComponent <PlayerMOD> (); }