Esempio n. 1
0
 protected override void Awake()
 {
     lighting = FindObjectOfType<BackgroundLighting>();
     trail = GetComponent<ParticleSystem>();
     base.Awake();
     StartCoroutine(UpdateLifeTime());
 }
 public override void UnHighLightMaterial()
 {
     BackgroundButtonLighting.SetActive(false);
     BackgroundLighting.SetActive(false);
 }
 public override bool HighLightMaterial(float distance)
 {
     BackgroundButtonLighting.SetActive(true);
     BackgroundLighting.SetActive(true);
     return(true);
 }
Esempio n. 4
0
 private void Awake()
 {
     back_lighting = FindObjectOfType<BackgroundLighting>();
     resource_audio = GetComponent<ResourceAudio>();
     transform.Rotate(0, 0, Random.value * 360);
 }