17 lines
379 B
C#
17 lines
379 B
C#
![]() |
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using DG.Tweening;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 撞钟类,控制地藏头上的钟
|
||
|
/// </summary>
|
||
|
public class Bell : MonoBehaviour
|
||
|
{
|
||
|
void Start(){
|
||
|
Tweener tweener = transform.DOShakePosition(5f,0.3f,1,150,false,false);
|
||
|
tweener.SetLoops(-1);
|
||
|
tweener.SetEase(Ease.InQuad);
|
||
|
}
|
||
|
}
|