This commit is contained in:
Kasutaja
2023-04-30 00:21:33 +03:00
parent 0b5f0c87be
commit 147ce39f2b
9 changed files with 2369 additions and 18 deletions

32
Assets/Scripts/Lvl2.cs Normal file
View File

@@ -0,0 +1,32 @@
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)
{
player.transform.position = new Vector3(-47.32f, 1144.72f, 3644.776f);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 82c6265a8cace5f4f8ec21117ec3454c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: