public override void OnBehaviourStart(Playable playable) { Loader.Instance.CreatEffect(effectName, effectObj => { effectObj.SetPostion(pos); effectObj.SetScale((behaviour as EffectPlayable).scale); effectObj.gameObject.transform.eulerAngles = (behaviour as EffectPlayable).rotation; this.effectObj = effectObj; if ((behaviour as EffectPlayable).isUIEffect) { SetLayerRecursively(effectObj.gameObject); } World.Instance.AddEffect(effectObj); }, (behaviour as EffectPlayable).isUIEffect); }