22 lines
381 B
C#
22 lines
381 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using HighlightingSystem;
|
|
|
|
public class CSHighlighterController : MonoBehaviour
|
|
{
|
|
protected Highlighter h;
|
|
|
|
//
|
|
void Awake()
|
|
{
|
|
h = GetComponent<Highlighter>();
|
|
if (h == null) { h = gameObject.AddComponent<Highlighter>(); }
|
|
}
|
|
|
|
//
|
|
void Start()
|
|
{
|
|
h.FlashingOn(new Color(1f, 0f, 0f, 0f), new Color(1f, 0f, 0f, 1f), 3f);
|
|
}
|
|
}
|