Пример #1
0
    // 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());
        }
    }
Пример #2
0
 private void Start()
 {
     playerPush = player.GetComponent <Playerpush>();
 }