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
| class MyControllerComponent : MonoBehaviour{ | |
| Animator _anim; | |
| AnimParam _myTrigger; | |
| void Awake() | |
| { | |
| _anim = GetComponent<Animator>(); | |
| _playbackDurations = GetComponent<PlaybackDurationManager>(); | |
| _myTrigger = _anim.AnimParam("StartThings"); | |
| } |
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; | |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine.EventSystems; | |
| //I used ILSpy on the Unity UI dll to copy out the Physicsraycaster code and fix where the ray eminates from (in this case, always the center of the screen) | |
| public class InteractionRaycaster : PhysicsRaycaster { | |
| [Range(0.0f, 0.5f)] |
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; | |
| using UnityEngine; | |
| using System.Collections; | |
| [Serializable] | |
| public class AnimParam | |
| { | |
| private readonly int _hashed;//a cached off version of the hashed string | |
| private readonly string _paramName;//don't really need but good for debug? | |
| private readonly Animator _anim; |
OlderNewer