16 lines
363 B
C#
16 lines
363 B
C#
using UnityEngine;
|
|
|
|
public abstract class BaseBehaviour : MonoBehaviour
|
|
{
|
|
private Transform cashedTransform;
|
|
public Transform CachedTransform
|
|
{
|
|
get { return cashedTransform ?? (cashedTransform = transform); }
|
|
}
|
|
|
|
protected virtual void Awake() { }
|
|
|
|
protected virtual void Start() { }
|
|
|
|
protected virtual void OnDestroy() { }
|
|
} |