public override void OnBehaviourStart(Playable playable) { //return; roleEffectBehaviour = behaviour as RoleEffectBehaviour; RoleObject obj = World.Instance.GetRoleObj(roleEffectBehaviour.roleData); if (obj != null) { var renders = obj.gameObject.GetComponentsInChildren <SkinnedMeshRenderer>(); XYCoroutineEngine.Execute(DoDissolveEffect(renders.ToList())); } }
public override void OnPlayableCreate(Playable playable) { osBehaviour = behaviour as RoleEffectBehaviour; }