Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     hpCon = GetComponent <HPCon>();
     transform.localScale = new Vector3(0.4f, 0.2f, 0.1f);
     AudioSource[] audioSources = GetComponents <AudioSource>();
     closeSE = audioSources[0];
     openSE  = audioSources[1];
     getSE   = audioSources[2];
     getSE.Play();
 }
 // Use this for initialization
 void Start()
 {
     isJump2  = true;
     hpCon    = GetComponent <HPCon>();
     rigid2D2 = GetComponent <Rigidbody2D>();
 }