GungHolo 36c35fd511 -> EasterEgg Szene 14 eingefügt
-> Boss angepasst
-> kleine Änderungen in anderen Szenen
-> Iglu ist jetzt ein Iglu
2023-06-24 13:58:21 +02:00

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);
}
}
}