Hi all,
I have started developping a Tower Defense game in Unity a month ago. I have been amazed with the flexibility and features Xenko offers at such an early stage and have decided to port my existing code to use Xenko. I have some questions:
-
All towers in my game inherit from a base class Tower that is a Monobehaviour (equivalent of Component in Xenko). I then derive Canon, Turret etc… Then when I do raycasting to select a tower for example, all I do is a raycastedObject.GetComponent<Tower>(), if that returns a reference, it means it is a concrete Tower or a derived class (Canon, Turret …). Does the Get<>() work the same way in Xenko?
-
My game is tile based, and builds a level from a file in a grid format. I instantiate the tiles from prefab and put them in their right position. In Unity I had a problem with too many draw calls (400 with just the level tiles which is a lot for a mobile game). Is there a way to have “prefab instances” that get drawn together ?
Those are all my questions for now. Thank you for your help!!