void Start() { Time.timeScale = 1; rb = GetComponent <Rigidbody2D>(); animController = GetComponent <AnimControllerPlayer>(); gameManager = GameObject.Find("GameManager").GetComponent <GameManagerControllerFase>(); this.gameover = false; this.isPause = false; }
void Start() { if (operation > 2) //Para ocorrer a multiplicaĆ§Ć£o sem zerar { currentResult = 1; } tiles = new LinkedList <GameObject>(); tilesBeforeAfter.AddFirst(tileAfter); tilesBeforeAfter.AddFirst(tileBefore); gameManagerController = GameObject.Find("GameManager").GetComponent <GameManagerControllerFase>(); }
private void Start() { initialMaterial = GetComponent <Renderer>().material; opController = operatorMode.GetComponent <OperationController>(); gameManager = GameObject.Find("GameManager").GetComponent <GameManagerControllerFase>(); switch (this.gameObject.tag) { case "Um": value = 1; break; case "Dois": value = 2; break; case "Tres": value = 3; break; case "Quatro": value = 4; break; case "UmWall": value = 1; isWall = true; break; case "DoisWall": value = 2; isWall = true; break; case "TresWall": value = 3; isWall = true; break; case "QuatroWall": value = 4; isWall = true; break; } }
void Start() { gameManager = GameObject.Find("GameManager").GetComponent <GameManagerControllerFase>(); }