/// ******************************************************* /// <summary>初期処理</summary> /// ******************************************************* void Awake() { _Instance = this; IsDestroyed = false; HitMaterial = HitRenderer.sharedMaterial; _BaseColor = Shader.PropertyToID("_BaseColor"); }
/// ******************************************************* /// <summary>破棄処理</summary> /// ******************************************************* private void OnDestroy() { _Instance = null; }