예제 #1
0
 // Use this for initialization
 void Start()
 {
     player           = FindObjectOfType <Player_Script> ();
     myRigidBody2D    = GetComponent <Rigidbody2D> ();
     healthBarSwapper = FindObjectOfType <HealthBarSwapper> ();
     oldPlayer        = player.transform.position - this.transform.position;
     oldPlayer.Normalize();
     oldPlayer = oldPlayer * multiplier;
     oldPlayer = oldPlayer + this.transform.position;
     shot      = true;
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        player           = FindObjectOfType <Player_Script> ();
        mainCamera       = GameObject.Find("Main Camera").GetComponent <Camera_Script> ();
        healthBarSwapper = FindObjectOfType <HealthBarSwapper> ();
        //playerStatus = GameObject.Find ("PlayerAnimation").GetComponent<PlayerAnimation> ();

        grappleShoot   = GameObject.Find("GrapplingHookShoot").GetComponent <AudioSource> ();
        grappleHitVine = GameObject.Find("GrapplingHookHitVine").GetComponent <AudioSource> ();
        playerRunning  = GameObject.Find("PlayerRunning").GetComponent <AudioSource> ();
        playerRunning.Play();
    }
 // Use this for initialization
 void Start()
 {
     healthBarSwapper = FindObjectOfType <HealthBarSwapper> ();
 }
 // Use this for initialization
 void Start()
 {
     player           = FindObjectOfType <Player_Script> ();
     healthBarSwapper = FindObjectOfType <HealthBarSwapper> ();
 }
예제 #5
0
 void Start()
 {
     text             = GetComponent <Text> ();
     energy           = 0;
     healthBarSwapper = FindObjectOfType <HealthBarSwapper> ();
 }