void Start () {
			status = GetComponent<CharaStatus> ();
			charaAnimation = GetComponent<CharaAnimation> ();
			inputManager = FindObjectOfType<InputManager>();
			gameRuleSettings = FindObjectOfType<GameRuleSettings>();
			targetCursor = FindObjectOfType<TargetCursor>();
			targetCursor.SetPosition (transform.position);

			//オーディオの初期化
			deathSeAudio = gameObject.AddComponent<AudioSource>();
			deathSeAudio.loop = false;
			deathSeAudio.clip = deathSeClip;
		}
		public void FindCharaStatusComponent(){
			this.status = GetComponent<CharaStatus>();
		}
示例#3
0
			public void FindStatusComponent(){
				status = GetComponent<CharaStatus>();		
			}
示例#4
0
		public void FindCharaStatusComponent(Collider other) {
			this.status = other.GetComponent<CharaStatus>();
		}
示例#5
0
		public void FindCharaStatusComponent(){
			this.status = transform.root.GetComponent<CharaStatus>();
		}