void Awake()
 {
     highLightSystem = GetComponent <HighLightSystem>();
     highLightSystem.SetUp();
     highLightSystem.material = GameManager.instance.highLightMaterial_01;
     grabCollider             = GetComponent <Collider>();
 }
Exemple #2
0
 void OnDestroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
Exemple #3
0
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
 }
Exemple #4
0
 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;
 }