Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c sharp teleporting

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Teleporting : MonoBehaviour
{
    public Transform teleportTarget;
    public GameObject thePlayer;

    void OnTriggerEnter(Collider other) 
    {
        thePlayer.transform.position = teleportTarget.transform.position;
    }

}
Comment

PREVIOUS NEXT
Code Example
Csharp :: read json from assets c# 
Csharp :: run dll file 
Csharp :: Match one of 1, 2, x or X, or nothing 
Csharp :: getelement video 
Csharp :: monegame deltatime 
Csharp :: linq from list c# 
Csharp :: c sharp convert string time into 24 hours time 
Csharp :: c# group array based on first character 
Csharp :: how to subtract two dates in dart 
Csharp :: instantiate type c# 
Csharp :: C# top down view player movement 
Csharp :: concatanate two lists in c# 
Csharp :: c# object is enum 
Csharp :: adding additional parameter to form submit 
Csharp :: Convert integers to written numbers C# 
Csharp :: c# loop through queue 
Csharp :: c# enum to list of strings 
Csharp :: c# multiplicate char 
Csharp :: c# networkstream read all bytes 
Csharp :: w3develops 
Csharp :: generate a dropdown list from array data using razor .net mvc 
Csharp :: c# in equivalent 
Csharp :: c# if break 
Csharp :: c# how to make object rotate forever 
Csharp :: c# textbox kodu 
Csharp :: linq select 
Csharp :: static initializer 
Csharp :: c# run a scheduled task 
Csharp :: string.format() c# 
Csharp :: Reporting Progress from Async Tasks c# 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =