Abilities: - area of effect ability with impact event/chain reaction type added - melee slash timing bugfix - melee slash VFX added - blizzard (second mage ability) added - holy circle (ultimate priest ability) added - consecration (ultimate knight ability) added - whirling axes (second barbarian ability) added - glacial bomb (ultimate mage ability) added - ice shard (first mage ability) added Others: - aoe location snapshot on cast mechanic added - reduced realtime shadows on rifthunters inn
31 lines
902 B
C#
31 lines
902 B
C#
using Photon.Pun;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class CharacterAnimatorParent : MonoBehaviour
|
|
{
|
|
PhotonView photonView;
|
|
CharacterAnimatorController animatorController;
|
|
public CastingStateController castingStateController;
|
|
|
|
private void Awake()
|
|
{
|
|
photonView = GetComponent<PhotonView>();
|
|
animatorController = GetComponentInChildren<CharacterAnimatorController>();
|
|
castingStateController = GetComponentInChildren<CastingStateController>();
|
|
}
|
|
|
|
|
|
public void SetRemoteTriggerBasedOnAbility(int animationType)
|
|
{
|
|
photonView.RPC(nameof(RPC_SetTriggerBasedOnAbility), RpcTarget.Others, animationType);
|
|
}
|
|
|
|
[PunRPC]
|
|
private void RPC_SetTriggerBasedOnAbility(int animationType)
|
|
{
|
|
animatorController.SetTriggerBasedOnAbility((AbilityAnimationType)animationType);
|
|
}
|
|
}
|