Ejemplo n.º 1
0
 void Awake()
 {
     t                       = 0f;
     beko_manager            = GameObject.Find("BekoManager").GetComponent <BekoManager>();
     theta                   = Vector2.zero;
     speed                   = Random.Range(10f, 30.0f);
     voice_time              = speed * 0.01f;
     vt                      = Random.Range(0f, speed * 0.1f);
     audio_source            = gameObject.GetComponent <AudioSource>();
     audio_source.pitch      = Random.Range(0.5f, 2f);
     movement_scale          = Random.Range(movement_scale * 0.7f, movement_scale * 0.8f);
     base_position           = Vector3.zero;
     direction               = this.transform.up * movement_scale;
     this.transform.position = direction;
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     beko_manager = GameObject.Find("BekoManager").GetComponent <BekoManager>();
 }