Exemplo n.º 1
0
 protected override void Start()
 {
     base.Start();
     score              = GameObject.FindGameObjectWithTag("Score").GetComponent <ScoreUpdater>();
     cargo              = GameObject.FindGameObjectWithTag("Cargo").GetComponent <CargoUpdater>();
     rotation           = new Vector3(0, 0, 360 - RotationAngle);
     transform.rotation = Quaternion.Euler(rotation);
 }
Exemplo n.º 2
0
 protected override void Start()
 {
     base.Start();
     score = GameObject.FindGameObjectWithTag("Score").GetComponent <ScoreUpdater>();
     cargo = GameObject.FindGameObjectWithTag("Cargo").GetComponent <CargoUpdater>();
 }