mirror of
https://github.com/lllyasviel/YGOProUnity_V2.git
synced 2026-10-29 14:49:07 +08:00
20 lines
480 B
C#
20 lines
480 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using System;
|
|
|
|
public class priority_floating : MonoBehaviour
|
|
{
|
|
int open = 0;
|
|
// Use this for initialization
|
|
void Start()
|
|
{
|
|
open = Program.TimePassed() - UnityEngine.Random.Range(0, 500);
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
gameObject.transform.localPosition = new Vector3(0, 10*(float)Math.Sin(3.1415936f * (float)(Program.TimePassed() - open) / 500f), 0);
|
|
}
|
|
}
|