Example 1 – I have One Single player controller script which controls
- Player Movement
- Player health
- Player Score
- Player Animation
- Player Footstep sound
Example 2 — I have many player controller scripts which (probablyhave to) inherti monobehaviour but each are meant for separate concern
- Script 1 controls player movement
- Script 2 controlls animation
3… Script 3 controlls player health death etc
and so on …
So my question is in both above Examples
- Are they equivalent in performance
- Example 2 feels very easy to manage to me but concern is it noticeably less efficient than example 1 since each script inherits monobehaviour?
Your thoughts and suggestions please,