1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class TweenBase : MonoBehaviour
- {
- public LeanTweenType mLeanTweenType = LeanTweenType.animationCurve;
- [HideInInspector]
- public GameObject obj;
- public Transform StartPoint;
- public Transform EndPoint;
- public Color StartColor = Color.white;
- public Color EndColor = Color.white;
- public float duration = 0.5f;
- public float delaytime;
- public virtual void Init()
- {
- }
- public virtual void StartAction()
- {
- }
- protected virtual void Awake()
- {
- obj = gameObject;
- if(StartPoint == null)
- {
- StartPoint = transform;
- }
- if (EndPoint == null)
- {
- EndPoint = transform;
- }
- }
- void Start()
- {
-
- }
- // Update is called once per frame
- void Update()
- {
-
- }
- }
|