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;
		}
Ejemplo n.º 2
0
			public void FindInputComponent(){
				this.inputManager = FindObjectOfType<InputManager> ();
			}