Esempio n. 1
0
    void Start()
    {
        ps          = GameObject.Find("Body").GetComponent <PlayerStatus>();
        playerHP_UI = GameObject.Find("Player_HP_UI").GetComponent <Slider>();
        playerSP_UI = GameObject.Find("Player_ST_UI").GetComponent <Slider>();

        gs           = GameObject.Find("PBR_Golem").GetComponent <GolemStatus>();
        MonsterHP_UI = GameObject.Find("Boss_HP_UI").GetComponent <Slider>();
        MonsterSP_UI = GameObject.Find("Boss_ST_UI").GetComponent <Slider>();
    }
    void Start()
    {
        keyDictionary = new Dictionary <string, bool>
        {
            { "Space", false },
            { "LeftShift", false },
            { "Q", false },
            { "LMouse", false },
            { "RMouse", false },
        };

        tr            = GetComponent <Transform>();
        eh            = GameObject.Find("StageEventHandler").GetComponent <EventHandler>();
        gs            = GameObject.Find("PBR_Golem").GetComponent <GolemStatus>();
        tr_body       = GameObject.Find("Body").GetComponent <Transform>();
        pStatus       = GameObject.Find("Body").GetComponent <PlayerStatus>();
        tr_Cam        = GameObject.Find("Main Camera").GetComponent <Transform>();
        LookRight     = Vector3.right;
        LookForward   = Vector3.forward;
        CharacterGoto = Vector3.forward;
        poller        = GameObject.Find("ObjectPoller").GetComponent <ObjectPoller>();
        skillManager  = GameObject.Find("SkillUI").GetComponent <SkillManager>();
    }
 private void Start()
 {
     Gs = transform.GetComponent <GolemStatus>();
     TargetSet(GameObject.Find("Player"));
 }