コード例 #1
0
 private void Start()
 {
     anim                  = GetComponent <Animator>();
     boyGranadeThrow       = GetComponent <BoyGranadeThrow>();
     boyMovement           = GetComponent <BoyMovement>();
     myBody                = GetComponent <Rigidbody2D>();
     scoreControllerScript = ScoreControllerUtils.GetScoreController();
     numberOfHits          = 0;
 }
コード例 #2
0
 void Start()
 {
     canvasOverlay         = GameObject.Find(overlaySceneControllerName).GetComponent <HideOverlayCanvas>();
     scoreControllerScript = ScoreControllerUtils.GetScoreController();
 }
コード例 #3
0
 void Start()
 {
     scoreControllerScript = ScoreControllerUtils.GetScoreController();
     witchDeathSound       = GameObject.Find(witchDeathSoundController).GetComponent <AudioSource>();
     santaLaught           = GameObject.Find(santaLaughtSound).GetComponent <AudioSource>();
 }
コード例 #4
0
 void Awake()
 {
     ScoreControllerUtils.InitObjects();
     ResetCount();
     scoreComponent.text = "0";
 }
コード例 #5
0
 void Start()
 {
     scoreControllerScript = ScoreControllerUtils.GetScoreController();
 }