public HumanPlayer(Color color, GameRPG game, Vector2 pos) { this.color = color; this.game = game; this.pos = pos; Reset(pos); LoadContent(); }
void Awake() { if (Instance != null && this != Instance) { //There is already a copy of this script running //Destroy(this); return; } Instance = this; DontDestroyOnLoad(gameObject); Init(); }