// Use this for initialization void Start() { rw = RewindTrigger.instance; rb = gameObject.GetComponent <Rigidbody2D>(); anim = gameObject.GetComponent <Animator>(); sp = gameObject.GetComponent <SpriteRenderer>(); //Speichere den Startpunkt startPoint = transform.position; }
private void Awake() { instance = this; foreach (GameObject g in Lvl) { g.SetActive(false); } Lvl[0].SetActive(true); }