- multiple new skeletons - necromancer class - necromancer first ability tryouts - drain projectile script
18 lines
578 B
C#
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);
|
|
}
|
|
}
|