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>(); }
void Start() { anim = GetComponent <CharacterAnimatior>(); status = GetComponent <CharacterStates>(); mAnim = GetComponent <MinionAnimator>(); charBar = GameObject.FindGameObjectWithTag("CharUI").GetComponent <CharacterUI>(); mainUI = GameObject.Find("UI").GetComponent <MainUiBar>(); }
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(); }