Ejemplo n.º 1
0
 void Start()
 {
     StartCoroutine("Opening");
     events = FindObjectOfType <GameEvents_Cave>();
     group  = FindObjectOfType <Group_Cave>();
     AudioSource[] audioSources = GetComponents <AudioSource>();
     sound_sneeze = audioSources[1]; // 2つめの音楽
 }
Ejemplo n.º 2
0
 void Start()
 {
     this.animator = GetComponent <Animator>();
     this.rb       = GetComponent <Rigidbody2D>();
     events        = FindObjectOfType <GameEvents_Cave>();
     group         = FindObjectOfType <Group_Cave>();
     state         = "WALKRIGHT";
     run           = 0f;
     startPosition = this.transform.position.x;
 }