123456789101112131415161718192021222324 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class CanvasReset : MonoBehaviour {
- public iTweenPositionTo tip = null;
- private Vector3 t;
- private void Awake()
- {
- t = transform.position;
- }
- private void OnEnable()
- {
- tip.iTweenPlay();
- }
- private void OnDisable()
- {
- transform.position = t;
- }
- }
|