25 lines
578 B
C#
25 lines
578 B
C#
|
|
using DG.Tweening;
|
|
using Mirror;
|
|
using UnityEngine;
|
|
using Valheim;
|
|
|
|
public class LevelUp : NetworkBehaviour
|
|
{
|
|
|
|
public GameObject levelUp;
|
|
|
|
// public
|
|
void Start()
|
|
{
|
|
transform.DOLocalMove(new Vector3(transform.position.x, 0.8f, transform.position.z), 1f).SetEase(Ease.OutQuad).OnComplete(() =>
|
|
{
|
|
levelUp.SetActive(false);
|
|
});
|
|
}
|
|
private void Update()
|
|
{
|
|
levelUp.GetComponent<Transform>().LookAt(new Vector3(GameInit.Ins.MRCamera.transform.position.x, 0, GameInit.Ins.MRCamera.transform.position.z));
|
|
}
|
|
}
|