feat: add test shurken
This commit is contained in:
17
Assets/Scripts/Items/Weapons/ShurikenActor.cs
Normal file
17
Assets/Scripts/Items/Weapons/ShurikenActor.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
namespace Reset.Items{
|
||||
public class ShurikenActor : WeaponActor{
|
||||
public GameObject bladeRing;
|
||||
|
||||
void Start(){
|
||||
Debug.Log(GetType());
|
||||
bladeRing = relatedObject.transform.GetChild(0).gameObject;
|
||||
}
|
||||
|
||||
void Update(){
|
||||
bladeRing.transform.Rotate(Vector3.up * (180f * Time.deltaTime));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user