41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
// Felix-Bang:FBCloud
|
||
// へ /|
|
||
// /\7 ∠_/
|
||
// / │ / /
|
||
// │ Z _,< / /`ヽ
|
||
// │ ヽ / 〉
|
||
// Y ` / /
|
||
// イ● 、 ● ⊂⊃〈 /
|
||
// () へ | \〈
|
||
// >ー 、_ ィ │ //
|
||
// / へ / ノ<| \\
|
||
// ヽ_ノ (_/ │//
|
||
// 7 |/
|
||
// >―r ̄ ̄`ー―_
|
||
// Describe:云
|
||
// Createtime:2018/9/25
|
||
|
||
|
||
using System.Collections;
|
||
using System.Collections.Generic;
|
||
using UnityEngine;
|
||
|
||
namespace FBApplication
|
||
{
|
||
public class FBCloud : MonoBehaviour
|
||
{
|
||
public float OffsetX = 1000;
|
||
public float Duration = 10;
|
||
|
||
void Start()
|
||
{
|
||
iTween.MoveBy(gameObject, iTween.Hash(
|
||
"x", OffsetX,
|
||
"easeType", iTween.EaseType.linear,
|
||
"loopType", iTween.LoopType.loop,
|
||
"time", Duration));
|
||
}
|
||
}
|
||
}
|
||
|