// Start is called before the first frame update void Start() { ConfigWarp = GameObject.Find("Conf").GetComponent <RememberWarp>(); if (ConfigWarp.wasWarping) { warping = true; this.transform.position = ConfigWarp.wherewarp.where; warpdir = ConfigWarp.wherewarp.exitdirection; Invoke("warpvolver", 1f); } Application.targetFrameRate = 60; }
public void OnTriggerEnter(Collider other) { if (!Mario.warping) { if (other.tag == "Character") { RememberWarp ConfigWarp = GameObject.Find("Conf").GetComponent <RememberWarp>(); ConfigWarp.wherewarp = warp; ConfigWarp.wasWarping = true; Mario.warping = true; Mario.warpdir = entracedirection; cameramov.Warp(); Invoke("gotoscene", 3f); } } }