41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
|
// Felix-Bang:FBBat
|
|||
|
// へ /|
|
|||
|
// /\7 ∠_/
|
|||
|
// / │ / /
|
|||
|
// │ Z _,< / /`ヽ
|
|||
|
// │ ヽ / 〉
|
|||
|
// Y ` / /
|
|||
|
// イ● 、 ● ⊂⊃〈 /
|
|||
|
// () へ | \〈
|
|||
|
// >ー 、_ ィ │ //
|
|||
|
// / へ / ノ<| \\
|
|||
|
// ヽ_ノ (_/ │//
|
|||
|
// 7 |/
|
|||
|
// >―r ̄ ̄`ー―_
|
|||
|
// Describe:蝙蝠的动画
|
|||
|
// Createtime:2018/9/25
|
|||
|
|
|||
|
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace FBApplication
|
|||
|
{
|
|||
|
public class FBBat : MonoBehaviour
|
|||
|
{
|
|||
|
public float Time = 1;
|
|||
|
public float OffsetY = 8;
|
|||
|
|
|||
|
void Start()
|
|||
|
{
|
|||
|
iTween.MoveBy(gameObject, iTween.Hash(
|
|||
|
"y", OffsetY,
|
|||
|
"easeType", iTween.EaseType.easeInOutSine,
|
|||
|
"loopType", iTween.LoopType.pingPong,
|
|||
|
"time",Time ));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|