Пример #1
0
 void Start()
 {
     rb          = GetComponent <Rigidbody>();
     rends       = GetComponents <Renderer>();
     plateShader = Shader.Find(Constants.SHADER_NAME_SHAKE);
     noisePing   = gameObject.GetComponent <NoisePinger>();
 }
Пример #2
0
 protected override void Start()
 {
     base.Start();
     noisePing = gameObject.GetComponent <NoisePinger>();
 }