Level 2
This commit is contained in:
32
Assets/Scripts/Lvl2.cs
Normal file
32
Assets/Scripts/Lvl2.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Lvl2.cs.meta
Normal file
11
Assets/Scripts/Lvl2.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 82c6265a8cace5f4f8ec21117ec3454c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user