Search Unity

Char Sheet Script Placed Where?

Discussion in 'Scripting' started by Gilead7, May 21, 2009.

  1. Gilead7

    Gilead7

    Joined:
    Apr 2, 2009
    Posts:
    27
    I'm wondering where I should place the character sheet script holding all the data for a character for my game. On the camera seems logical, but I'm not sure. Any thoughts?
     
  2. Jacob-Williams

    Jacob-Williams

    Joined:
    Jan 30, 2009
    Posts:
    267
    This entirely depends on how your scripts are set up. I would probably put a script like this on the character itself. This way has a couple of advantages.

    First, putting scripts that control the players stats on the player would organize things a little better. Second, it would be easier to access other scripts that control the players stats, as they would all be components on the same gameObject. I imagine a game that would require a player character sheet would be quite complex, and placing a script that controls an object on the object it controls would make tweaking variables for balancing quite a bit easier.

    Just my two cents.

    -cD