Ejemplo n.º 1
0
 void Start()
 {
     cannonControl = GetComponent <CannonControl>();
     car           = GetComponent <CarControl>();
     shooter       = GetComponent <Shooter>();
     target        = GameObject.Find("PlayerTank").transform;
 }
Ejemplo n.º 2
0
 void Start()
 {
     cannon  = GetComponent <CannonControl>();
     car     = GetComponent <CarControl>();
     shooter = GetComponent <Shooter>();
     // GetComponent<Rigidbody>().centerOfMass = new Vector3(0, 0.1f, 0);
 }