RiftMayhem/Assets/Scripts/Networking/NetworkAbilityChainReaction.cs
Pedro Gomes 4a65a17327 New character assets and class
- multiple new skeletons
- necromancer class
- necromancer first ability tryouts
- drain projectile script
2024-07-21 23:27:14 +01:00

18 lines
578 B
C#

using Photon.Pun;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NetworkAbilityChainReaction : MonoBehaviour
{
public BaseAbility ability;
public GameObject abilityPrefabName;
protected GameObject spawnedChainReaction;
public virtual void ExecuteAbilityChainReaction(PhotonView owner, Taggable ownerTag, List<Taggable> targets)
{
if (owner.IsMine)
spawnedChainReaction = PhotonNetwork.Instantiate("Abilities/" + abilityPrefabName.name, this.transform.position, Quaternion.identity);
}
}