Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     Player         = GameObject.Find("Player");
     PM             = Player.GetComponent <Player_Manager>();
     SC             = GameObject.Find("SceneChanger").GetComponent <SceneChanger>();
     ButtonSound    = PM.PlayerInternalAudio;
     ContinueButton = GameObject.Find("ContinueButton").GetComponent <Button>();
     QuitButton     = GameObject.Find("QuitButton").GetComponent <Button>();
     ContinueButton.onClick.AddListener(ContinueGame);
     QuitButton.onClick.AddListener(QuitGame);
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     SC                  = GameObject.Find("SceneChanger").GetComponent <SceneChanger>();
     currentHealth       = maxHealth;
     damage              = defaultDamage;
     rupees              = 0;
     triforceCount       = 0;
     joltAmount          = 1000f;
     speedUpgradeNumber  = 0;
     attackUpgradeNumber = 0;
     healthUpgradeNumber = 0;
 }
Beispiel #3
0
        void Start()
        {
            SC = GameObject.Find("SceneChanger").GetComponent <SceneChanger>();
            /* Initialize Player Stuff */
            Player            = GameObject.Find("Player");
            PM                = Player.GetComponent <Player_Manager>();
            PM.canAttack      = false;
            PM.canSwordAttack = false;
            PM.canBombAttack  = false;
            PM.canBowAttack   = false;
            SF                = GameObject.FindGameObjectWithTag("Fader").GetComponent <ScreenFader>();

            /* CRUCIAL CHECK: Are we spawning from 'New Game' or not */
            PlayerAnim = Player.GetComponent <Animator>();

            /* Initialize Girl Stuff */
            GNPC = Girl.GetComponent <NPC_Manager>();
            Anim = Girl.GetComponent <Animator>();
            Anim.SetFloat("direction_x", 0f);
            Anim.SetFloat("direction_y", -1f);
            girlPoint1    = GameObject.Find("GirlWaypoint1").GetComponent <Transform>();
            playerPoint1  = GameObject.Find("PlayerPoint1").GetComponent <Transform>();
            triforcePoint = GameObject.Find("TriforcePoint").GetComponent <Transform>();
        }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     PM          = GameObject.Find("Player").GetComponent <Player_Manager>();
     PlayerAudio = PM.PlayerInternalAudio;
     SC          = GameObject.Find("SceneChanger").GetComponent <SceneChanger>();
 }
Beispiel #5
0
 // Use this for initialization
 void Start()
 {
     SC            = GameObject.Find("SceneChanger").GetComponent <SceneChanger>();
     Player        = GameObject.Find("Player");
     PlayerManager = Player.GetComponent <Player_Manager>();
 }