//Called once when this object initializes void Start() { plane = GetComponent <AeroPlane>(); turnCooldown = new Timers.CooldownTimer(3); planeBehaviour = GetComponent <PlaneBehaviour>(); enemy = GameHandler.Instance.Player; }
void defineVariables() { plane = GetComponent <AeroPlane>(); elevator = plane.getPart("elevator"); gear = plane.getPart("gear"); propeller = plane.getPart("propeller"); flap = plane.getPart("flap"); throttleTimer = new Timers.CooldownTimer(0.01f); shootingTimer = new Timers.CooldownTimer(0.08f); state = PlaneState.common; }