Ejemplo n.º 1
0
    void Start()
    {
        player = GetComponent <Transform>();
        // enemy = GameObject.FindGameObjectWithTag("Enemy").GetComponent<Transform>();
        anim = GetComponent <Animator>();
        navi = GetComponent <NavMeshAgent>();

        animator = GetComponent <CharacterAnimatior>();

        state = GetComponent <CharacterStates>();

        // miniState = GameObject.FindGameObjectWithTag("Enemy").GetComponent<MinionState>();

        prop = GetComponent <PropManager>();

        if (photonView.isMine)
        {
            Camera.main.GetComponent <FollowCamera>().player = camPivot;
        }

        skillManager = GameObject.Find("UI/CharacterStateInfo/Skll").GetComponent <SkillManager>();

        total = GetComponent <CharacterTotalState>();

        parent = transform.root.gameObject;

        genPoints = GameObject.Find("PlayerGenpoints").GetComponentsInChildren <Transform>();
    }
Ejemplo n.º 2
0
    void Start()
    {
        anim   = GetComponent <CharacterAnimatior>();
        status = GetComponent <CharacterStates>();
        mAnim  = GetComponent <MinionAnimator>();

        charBar = GameObject.FindGameObjectWithTag("CharUI").GetComponent <CharacterUI>();
        mainUI  = GameObject.Find("UI").GetComponent <MainUiBar>();
    }
Ejemplo n.º 3
0
    void Start()
    {
        player     = GameObject.FindGameObjectWithTag("Player");
        states     = player.transform.GetComponent <CharacterStates>();
        controller = player.GetComponent <PlayerMoveController>();
        animatior  = player.GetComponent <CharacterAnimatior>();

        if (sParent != null)
        {
            skillButton = sParent.GetComponentsInChildren <SkillSlot>();
        }
        SetSkill();
    }