コード例 #1
0
ファイル: Singleton.cs プロジェクト: Wuziyi12/MoJian
    public static UI_Manager UI;        //UI管理

    void Awake()
    {
        inventory = GameObject.Find("Inventory").GetComponent <Inventory2> ();
        equip     = GameObject.Find("Equipment").GetComponent <Equip_Manager>();
        store     = GameObject.Find("store").GetComponent <Store>();
        key       = GameObject.Find("short cut/Key").GetComponent <Key> ();
        skillUI   = GameObject.Find("skill_UI").GetComponent <Skill_UI> ();
        money     = GameObject.Find("inventory/Win/money").GetComponent <Money> ();
        UI        = GameObject.Find("UI Root").GetComponent <UI_Manager> ();
    }
コード例 #2
0
    //public static MiniMap nimimMap;//小地图
    //public static BossBlood bossBlood;//Boss血条
    //public static TeamMates teamMates;//队友


    void Awake()
    {
        inventory  = GameObject.Find("Inventory").GetComponent <Inventory_Manager>();
        equip      = GameObject.Find("Equipment").GetComponent <Equip_Manager>();
        key        = GameObject.Find("short cut/Key").GetComponent <Key>();
        skillUI    = GameObject.Find("skill_UI").GetComponent <Skill_UI>();
        taskUI     = GameObject.Find("task_UI").GetComponent <Task_UI>();
        money      = GameObject.Find("inventory/Win/money").GetComponent <Money>();
        UI         = GameObject.Find("UI Root").GetComponent <UI_Manager>();
        keyControl = GameObject.Find("short cut").GetComponent <KeyControl>();
        //nimimMap = GameObject.Find("MiniMap").GetComponent<MiniMap>();
        //bossBlood = GameObject.Find("BossBlood").GetComponent<BossBlood>();
        //teamMates = GameObject.Find("TeamMates").GetComponent<TeamMates>();
    }
コード例 #3
0
ファイル: Player.cs プロジェクト: I-Answer/Boost_Run_Client
    protected virtual void Awake()
    {
        transform = base.transform;

        manager = GameObject.FindWithTag("Manager").GetComponent <GameManager>();

        hpUi    = GameObject.FindWithTag("Hp Ui").GetComponent <Hp_UI>();
        speedUi = GameObject.FindWithTag("Speed Ui").GetComponent <Speed_UI>();

        skillUi = GameObject.FindWithTag("Skill Ui").GetComponent <Skill_UI>();
        skillUi.SetSkillImage(skillImage);

        myPos = transform.position;

        hp      = 1f;
        isAlive = true;
    }