mirror of
https://github.com/lllyasviel/YGOProUnity_V2.git
synced 2026-10-29 06:46:35 +08:00
30 lines
561 B
C#
30 lines
561 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class arrow : MonoBehaviour {
|
|
public float speed = 1;
|
|
public Transform from;
|
|
public Transform to;
|
|
public RendMega mega;
|
|
public MegaShapeArc arc;
|
|
// Use this for initialization
|
|
void Start ()
|
|
{
|
|
updateSpeed();
|
|
}
|
|
|
|
public void updateSpeed()
|
|
{
|
|
var list = GetComponentsInChildren<AnimUnit>();
|
|
foreach (var item in list)
|
|
{
|
|
item.m_fspeed = speed;
|
|
}
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
}
|