Exemple #1
0
    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()));
        }
    }
Exemple #2
0
 public override void OnPlayableCreate(Playable playable)
 {
     osBehaviour = behaviour as RoleEffectBehaviour;
 }