I've a script : Toy .
Depending of toy "type" i need to activate different feature.
For instance, for "Police-Car" i need to activate Siren, for "Truck" i need to activate horn .
I don't want to re-engineer my code creating a classic way like:
Truck : Toy
Police-Car : Toy
So I want to call a generic public function "Activate", existing in Truck, Police .. from my Toy class.
How can i reference different script ( PoliceCarScript, TruckScript) inside Toy , so i can launch the Activate public method of PoliceCarScript, TruckScript ?