2023-04-29 21:21:33 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class Lvl2 : MonoBehaviour
|
|
|
|
{
|
|
|
|
// Start is called before the first frame update
|
|
|
|
void Start()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
void Update()
|
|
|
|
{
|
|
|
|
//if (new collision.gameObject.tag == "player")
|
|
|
|
// collision.gameObject.GetComponent<player>().Surm();
|
|
|
|
}
|
|
|
|
|
|
|
|
public void OnTriggerEnter(Collider other)
|
|
|
|
{
|
|
|
|
if (other.tag == "player")
|
|
|
|
{
|
|
|
|
ViiTeisseLevelisse(other.gameObject);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public void ViiTeisseLevelisse(GameObject player)
|
|
|
|
{
|
2023-04-30 11:23:57 +00:00
|
|
|
player.transform.position = new Vector3(-47.32f, 1144.72f, 3612.7f);
|
2023-04-29 21:21:33 +00:00
|
|
|
}
|
|
|
|
}
|