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