// Start is called before the first frame update void Start() { //Distância fixa do movimento. MoveHor = new Vector3(GridSize, 0f, 0f); MoveVer = new Vector3(0f, GridSize, 0f); playerPush = GetComponent <Playerpush>(); anim = GetComponent <Animator>(); if (SceneManager.GetActiveScene().buildIndex < 3 || SceneManager.GetActiveScene().buildIndex == 18) { startLevel = true; } else { StartCoroutine(EnableMove()); } }
private void Start() { playerPush = player.GetComponent <Playerpush>(); }