コード例 #1
0
 void Awake()
 {
     database      = Grid.itemDataBase;
     playerManager = GetComponentInParent <Player_Manager> ();
     // Load the player stats, if there is any.
     Load();
 }
コード例 #2
0
ファイル: Grid.cs プロジェクト: AnaMaria2019/BinTree
        static Grid()
        {
            GameObject g;

            g            = SafeFind("_Holder");
            helper       = (Helper_Manager)SafeComponent(g, "Helper_Manager");
            itemDataBase = (Item_Database)SafeComponent(g, "Item_Database");
            inventory    = (Inventory)SafeComponent(g, "Inventory");
            tooltip      = (Tooltip)SafeComponent(g, "Tooltip");
            stateManager = (State_Manager)SafeComponent(g, "State_Manager");
            setup        = (Setup)SafeComponent(g, "Setup");

            g            = SafeFind("Sound_Manager");
            soundManager = (Sound_Manager)SafeComponent(g, "Sound_Manager");

            g             = SafeFind("OptionsCanvas");
            optionManager = (Options_Manager)SafeComponent(g, "Options_Manager");

            g          = SafeFind("Death Panel");
            deathPanel = (Move_GameObject)SafeComponent(g, "Move_GameObject");
        }