void Start() { animator = GetComponent <Animator>(); JoyStick = GameObject.Find("Joystick").GetComponent <NGUIJoystick>(); hitButton = GameObject.Find("AttckButton").GetComponent <CheaserHitBButton>(); flashCollision = GameObject.Find("Cheaser").GetComponent <FlashCollision>(); cheaserCollider = this.GetComponent <CapsuleCollider>(); // 스킬 버튼 chSkillButton1 = GameObject.FindWithTag("CheaserSkillUiButton").GetComponent <ChSkillButton1>(); chSkillButton2 = GameObject.FindWithTag("CheaserSkillUiButton2").GetComponent <ChSkillButton2>(); chSkillButton3 = GameObject.FindWithTag("CheaserSkillUiButton3").GetComponent <Skill3Button>(); // 파티클 제어 paticleSkill1.Stop(); paticleSkill2.Stop(); paticleSkill3.Stop(); // 쉐이더 변경 cheaserMesh = this.GetComponentInChildren <SkinnedMeshRenderer>(); }
void Awake() { chSkillButton1 = GameObject.FindWithTag("CheaserSkillUiButton"); chSkillButton2 = GameObject.FindWithTag("CheaserSkillUiButton2").GetComponent <ChSkillButton2>(); chSkillButton3 = GameObject.FindWithTag("CheaserSkillUiButton3").GetComponent <Skill3Button>(); joyStick = GameObject.Find("Joystick").GetComponent <NGUIJoystick>(); characterSpeed = GameObject.Find("Cheaser").GetComponent <CheaserMoveCamera>(); playerOutLine = GameObject.FindGameObjectWithTag("Player").GetComponent <Outline>(); cheaserAttackButton = GameObject.FindWithTag("CheaserAttackButton").GetComponent <CheaserHitBButton>(); potalCollider = GameObject.FindWithTag("PotalCollision").GetComponent <PotalCollider>(); cheaserAni = this.GetComponent <CheaserAnimationPoton>(); cheaserRay = new Ray(); crow2Navi = GameObject.FindWithTag("Crow2").GetComponent <CrowNavi>(); attackUiLabel = GameObject.FindWithTag("CheaserAttackButton").GetComponentInChildren <UILabel>(); animator = GetComponent <Animator>(); }
private void Awake() { chButton1 = GameObject.FindWithTag("CheaserSkillUiButton").GetComponent <ChSkillButton1>(); chButton3 = GameObject.FindWithTag("CheaserSkillUiButton3").GetComponent <Skill3Button>(); }
// Use this for initialization void Start() { pc = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_Ctrl_PC>(); skill3 = GameObject.FindGameObjectWithTag("Skill3").GetComponent <Skill3Button>(); }