Quantcast
Channel: Questions in topic: "get"
Viewing all articles
Browse latest Browse all 215

Overriding a function.

$
0
0
So I have a controller class which has a getter for the character's view. But I have a player subclass that should instead get the camera's view from the same function. Basically, I want to call GetView on any controller, but get the player's camera when called on a player. How would I go about this?

Viewing all articles
Browse latest Browse all 215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>