private void Awake() { fAnimation = GetComponent <RIFramesAnimation>(); playBtn.onClick.AddListener(OnPlayBtnClick); gifFile = string.Format("{0}/Gif/Running.gif", Application.streamingAssetsPath); }
private void Start() { gifFile = string.Format("{0}/Gif/{1}.gif", Application.streamingAssetsPath, gifName); fAnimation = GetComponent <RIFramesAnimation>(); }