This file contains 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 UnityEngine.Playables; | |
public class PlayAnimation : MonoBehaviour | |
{ | |
public Animator animator; | |
public AnimationClip clip; | |
[NonSerialized] private PlayableGraph m_Graph; |
This file contains 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 ToonMotion : MonoBehaviour | |
{ | |
private class Snapshot | |
{ | |
public Transform transform; | |
public Vector3 position; |
This file contains 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
/* | |
* The following code is part of a tutorial. | |
* http://catsoft-studios.com/virtual-joysticks-for-unity3d-mobile-games | |
* | |
**/ | |
using UnityEngine; | |
using System.Collections; | |
public class VirtualJoystick : MonoBehaviour |