using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DemoAction : MonoBehaviour
{
    void OnEnable()
    {
        FVS.FVSActionManager.Bind("RotateCube", Rotate);
    }

    public void Rotate(string[] data)
    {
        GameObject cube = GameObject.Find("Cube");
        cube.transform.localEulerAngles += new Vector3(0, 0, 30);
    }

    // Update is called once per frame
    private void OnDisable()
    {
        FVS.FVSActionManager.UnBind("RotateCube");
    }
}
