Esempio n. 1
0
 // 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;
 }
Esempio n. 2
0
    private void Awake()
    {
        instance = this;

        foreach (GameObject g in Lvl)
        {
            g.SetActive(false);
        }
        Lvl[0].SetActive(true);
    }