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; | |
[System.Serializable] | |
public class CharacterMotorSliding { | |
// Does the character slide on too steep surfaces? | |
public bool enabled = true; | |
// How fast does the character slide on steep surfaces? |
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
public class SomeThing : MonoBehaviour | |
{ | |
public MyPrefabReference PrefabReference; | |
void Awake() | |
{ | |
Instantiate(PrefabReference); | |
} | |
} |
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 HandHitbox : MonoBehaviour | |
{ | |
void OnTriggerEnter(Collider collider) | |
{ | |
Interactable interactable = collider.GetComponent<Interactable> (); | |
if (interactable != null) { | |
interactable.TouchedBy (this); |