void Update() { // PLAY if (Input.GetKeyDown(KeyCode.G)) { Debug.Log("Playing an animation configured trough code."); simpleAnimationsManager.Play(codeAnimation); } if (Input.GetKeyDown(KeyCode.H)) { Debug.Log("Playing an animation configured trough the inspector."); simpleAnimationsManager.Play(0); } // STOP if (Input.GetKeyDown(KeyCode.T)) { Debug.Log("Stopping an animation configured trough code."); simpleAnimationsManager.Stop(codeAnimation); } if (Input.GetKeyDown(KeyCode.Y)) { Debug.Log("Stopping an animation configured trough the inspector."); simpleAnimationsManager.Stop(0); } }
void Update() { // PLAY if (Input.GetKeyDown(KeyCode.H)) { simpleAnimationsManager.Play("Float"); simpleAnimationsManager.Play("Int"); simpleAnimationsManager.Play("Vector2"); simpleAnimationsManager.Play("Vector3"); } // STOP if (Input.GetKeyDown(KeyCode.Y)) { simpleAnimationsManager.Stop("Float"); simpleAnimationsManager.Stop("Int"); simpleAnimationsManager.Stop("Vector2"); simpleAnimationsManager.Stop("Vector3"); } }
void Update() { // PLAY if (Input.GetKeyDown(KeyCode.H)) { simpleAnimationsManager.Play("Color"); } // STOP if (Input.GetKeyDown(KeyCode.Y)) { simpleAnimationsManager.Stop("Color"); } }