36c35fd511
-> Boss angepasst -> kleine Änderungen in anderen Szenen -> Iglu ist jetzt ein Iglu
38 lines
712 B
C#
38 lines
712 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
|
|
public class Amboss : MonoBehaviour
|
|
{
|
|
private GameObject anvil;
|
|
public bool one;
|
|
public bool two;
|
|
public bool three;
|
|
public bool four;
|
|
|
|
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
anvil = GameObject.Find("ambos");
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void FixedUpdate()
|
|
{
|
|
|
|
if(one&&two&&three&&four)
|
|
{
|
|
anvil.GetComponent<Rigidbody2D>().constraints = RigidbodyConstraints2D.None;
|
|
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex+1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|