Exemplo n.º 1
0
        public HumanPlayer(Color color, GameRPG game, Vector2 pos)
        {
            this.color = color;
            this.game  = game;
            this.pos   = pos;

            Reset(pos);
            LoadContent();
        }
Exemplo n.º 2
0
    void Awake()
    {
        if (Instance != null && this != Instance)
        {
            //There is already a copy of this script running
            //Destroy(this);
            return;
        }

        Instance = this;

        DontDestroyOnLoad(gameObject);

        Init();
    }