コード例 #1
0
ファイル: Wall.cs プロジェクト: Coursaux/AGJ2020
 void Start()
 {
     player      = FindObjectOfType <PlayerController>();
     clipPlayer  = FindObjectOfType <ClipPlayer>();
     audioSource = clipPlayer.GetComponent <AudioSource>();
     FetchHead();
 }
コード例 #2
0
 void Start()
 {
     rb          = GetComponent <Rigidbody>();
     head        = GetComponentInChildren <Head>();
     clipPlayer  = FindObjectOfType <ClipPlayer>();
     audioSource = clipPlayer.GetComponent <AudioSource>();
 }
コード例 #3
0
 void Start()
 {
     currentHealth   = totalHealth;
     cameraShaker    = FindObjectOfType <CameraFollow>();
     playAgainCanvas = FindObjectOfType <PlayAgain>();
     score           = FindObjectOfType <Score>();
     clipPlayer      = FindObjectOfType <ClipPlayer>();
     clipAudioSource = clipPlayer.GetComponent <AudioSource>();
     audioSource     = GetComponent <AudioSource>();
     playAgainCanvas.Hide();
 }