Exemplo n.º 1
0
        void Awake()
        {
            Instance = this;

            foreach (var a in Abilities)
            {
                lookup.Add(a.AbilityType, a);
                a.Initialize();
            }
        }
Exemplo n.º 2
0
        void Start()
        {
            //Static references
            gameData  = PersistentGameData.Instance;
            ui        = UIManager.Instance;
            directory = PlayerAbilityDirectory.Instance;
            Inventory = Inventory_Bag.Instance;

            //Reference game data and use it to initialize the game
            data = gameData.SaveFile;

            //UI
            ui.UpdateAllPlayerInfo(data);

            //Model color
            feedback.playerColorAssigner.UpdateColor(gameData.SaveFile);

            //Initialize class
            resourceManagement = new PlayerResourceManagement(this);

            //Cache
            layerInteractable = CharacterSettings.instance.InteractableLayer;
        }