-
Notifications
You must be signed in to change notification settings - Fork 0
/
AvadaTest.cs
47 lines (43 loc) · 1.46 KB
/
AvadaTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using ThunderRoad;
using UnityEngine;
using UnityEngine.VFX;
namespace WandSpellss
{
public class AvadaTest : MonoBehaviour
{
private VisualEffect vfx;
private Item item;
private GameObject go;
public void Start()
{
item = GetComponent<Item>();
go = GameObject.Instantiate(Loader.local.avadaTest);
go.transform.position = item.flyDirRef.position;
go.transform.rotation = item.flyDirRef.rotation;
vfx = go.GetComponentInChildren<VisualEffect>();
vfx.Play();
}
}
public class AvadaTestHandler : Spell
{
public static SpellType spellType = SpellType.Raycast;
public override Spell AddGameObject(GameObject gameObject)
{
throw new NotImplementedException();
}
public override void SpawnSpell(Type type, string name, Item wand, float spellSpeed)
{
throw new NotImplementedException();
}
public override void UpdateSpell(Type type, string name, Item wand)
{
if (wand.gameObject.GetComponent(type)) UnityEngine.Object.Destroy(wand.gameObject.GetComponent(type));
wand.gameObject.AddComponent(type);
}
public override void UpdateSpell(Type type, string name, Item wand, String itemType)
{
throw new NotImplementedException();
}
}
}