using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class TargetFlow : MonoBehaviour { private Animator aniFlow; //public Image imgTargetFlow; // Use this for initialization void Start () { aniFlow = this.gameObject.GetComponent(); } // Update is called once per frame void Update () { } public void SetState(int s) { aniFlow.SetInteger ("s", s); } }