예제 #1
0
 void Awake()
 {
     Instance = this;
     foreach (RarityTradingCost cost in TradingCostsArray)
     {
         TradingCosts.Add(cost.Rarity, cost);
     }
 }
예제 #2
0
        public Player(Vector2 location, WorldBase world) : base(location, world)
        {
            state = new State_Standing();
            state.enter(this);

            rand  = new Random();
            width = 20;

            hunger = 100;
            health = 100;
            warmth = 100;

            craftingControlManager = new CraftingScreen(this);
            guitarControlManager   = new GuitarControlManager(this);
            movementControlManger  = new StandardPlayerControlManager(this);
            currentControlManager  = movementControlManger;
            selectedFrame          = texture_player_default_stand;

            hasLeveledUpThisWorld = false;
        }