This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class TeleportScript : MonoBehaviour | |
{ | |
void OnEnable() | |
{ | |
EventManager.OnClicked += Teleport; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class TurnColorScript : MonoBehaviour | |
{ | |
void OnEnable() | |
{ | |
EventManager.OnClicked += TurnColor; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class ClickSetPosition : MonoBehaviour | |
{ | |
public PropertiesAndCoroutines coroutineScript; | |
void OnMouseDown () | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class PropertiesAndCoroutines : MonoBehaviour | |
{ | |
public float smoothing = 7f; | |
public Vector3 Target | |
{ | |
get { return target; } | |
set |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class CoroutinesExample : MonoBehaviour | |
{ | |
public float smoothing = 1f; | |
public Transform target; | |
void Start () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class TestSkinnedMeshRendererBones : MonoBehaviour { | |
[SerializeField] private SkinnedMeshRenderer skinnedMeshRendererPrefab; | |
[SerializeField] private SkinnedMeshRenderer originalSkinnedMeshRenderer; | |
[SerializeField] private Transform rootBone; |
OlderNewer