Exemplo n.º 1
0
 // Use this for initialization
 public override void Start()
 {
     base.Start();
     collisions.faceDir = 1;
     playerScript       = GetComponent <NG_Player>(); //Getting reference to the player input script so I can make the player slip on ice. -NG
     playerStats        = GetComponent <NG_StatManager>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     player = GameObject.FindObjectOfType <NG_Player>();
     if (!boss)
     {
         StartCoroutine(ShootTime());
     }
     //
 }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        PlayerController = FindObjectOfType <NG_Player>();

        if (lerpColors)
        {
            content.color = fullColor;
        }
    }
Exemplo n.º 4
0
 private void OnEnable()
 {
     player          = FindObjectOfType <NG_Player>();
     playerStats     = FindObjectOfType <NG_StatManager>();
     playerWeapon    = FindObjectOfType <NG_Weapon>();
     scoreManager    = FindObjectOfType <ScoreManager>();
     upgradeProgress = FindObjectOfType <NG_UpgradeProgress>();
     circleMenu      = FindObjectOfType <NG_CircleMenu>();
     UpdateValues();
 }
Exemplo n.º 5
0
 public void OnTriggerStay2D(Collider2D collision)
 {
     if (collision.gameObject.tag == "Player")
     {
         player = collision.GetComponent <NG_Player>();
         camFollowPlayer.CamPosSet = this;
         inRoom = true;
         StartCoroutine(CameraShift());
     }
 }
Exemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     player = FindObjectOfType <NG_Player>();
     stats  = FindObjectOfType <NG_StatManager>();
     if (player.transform.localScale.x < 0)
     {
         angle.x = -angle.x;
     }
     stats.Energy.CurrentVal -= NRG;
 }
Exemplo n.º 7
0
 // Use this for initialization
 void Start()
 {
     RB    = GetComponent <Rigidbody2D>();
     SM    = FindObjectOfType <NG_StatManager>();
     sound = FindObjectOfType <SoundManager>();
     //Assigning the player script -NG
     player = FindObjectOfType <NG_Player>();
     sound.snoSound();
     SM.Energy.CurrentVal--;
     SM.Energy.CurrentVal--;
     //Check to see if the player is facing left -NG
     if (player.transform.localScale.x < 0)
     {
         throwSpeed = -throwSpeed;
     }
 }
Exemplo n.º 8
0
    // Use this for initialization
    void Start()
    {
        playerControl   = FindObjectOfType <NG_Player>();
        upgradeProgress = FindObjectOfType <NG_UpgradeProgress>();
        pauseMenu       = FindObjectOfType <PauseMenu>();
        //ammoSelectUI = GameObject.Find("AmmoSelectUI");

        menuItems = buttons.Count;
        foreach (MenuButton button in buttons)
        {
            button.buttonImage.color = button.idleColor;
        }
        curMenuItem         = 0;
        oldMenuItem         = 0;
        curMenuDisplay      = GameObject.Find("CurProjectileFrame").transform.GetChild(0).gameObject;
        curProjectileSprite = curMenuDisplay.GetComponent <Image>();
    }
Exemplo n.º 9
0
    // Use this for initialization
    void Start()
    {
        SM   = FindObjectOfType <SoundManager>();
        RB   = GetComponent <Rigidbody2D>();
        stat = FindObjectOfType <NG_StatManager>();
        SM.snoSound();

        //Assigning the player script -NG
        player = FindObjectOfType <NG_Player>();
        weapon = FindObjectOfType <NG_Weapon>();

        stat.Energy.CurrentVal -= NRG;
        player.CurBallCost      = NRG;
        //Check to see if the player is facing left -NG
        if (player.transform.localScale.x < 0)
        {
            throwSpeed = -throwSpeed;
        }
    }
Exemplo n.º 10
0
 // Use this for initialization
 void Start()
 {
     player      = FindObjectOfType <NG_Player>();
     playerInput = FindObjectOfType <NG_PlayerInput>();
     circleMenu  = FindObjectOfType <NG_CircleMenu>();
 }
Exemplo n.º 11
0
 // Use this for initialization
 void Start()
 {
     PC = FindObjectOfType <NG_Player>();
 }
Exemplo n.º 12
0
 private void Start()
 {
     player       = GetComponent <NG_Player>();
     controller2D = GetComponent <NG_CharacterController2D>();
 }
Exemplo n.º 13
0
 // Use this for initialization
 void Start()
 {
     player      = FindObjectOfType <NG_Player>();
     playerStats = FindObjectOfType <NG_StatManager>();
     sounds      = FindObjectOfType <SoundManager>();
 }