void Awake() { highLightSystem = GetComponent <HighLightSystem>(); highLightSystem.SetUp(); highLightSystem.material = GameManager.instance.highLightMaterial_01; grabCollider = GetComponent <Collider>(); }
void OnDestroy() { if (Instance == this) { Instance = null; } }
void Awake() { if (Instance == null) { Instance = this; } }
void Awake() { trsf = transform; startPos = trsf.position; endPos = trsf.position + trsf.right * movementAxis.x + trsf.up * movementAxis.y + trsf.forward * movementAxis.z; onOff = startStat; oneTimeDone = false; rdr = GetComponent <Renderer>(); sharedMaterial = rdr.sharedMaterial; SetMaterial(); highLightSystem = GetComponent <HighLightSystem>(); interacting = false; }