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