// Use this for initialization
	void Start () {
		playercurrenthealth = playermaxhealth;
		sfxMan = FindObjectOfType<Sfx_manager> ();

		playersprite = GetComponent<SpriteRenderer> ();

	
	}
Exemplo n.º 2
0
    void Start()
    {
        anim    = GetComponent <Animator>();
        myribod = GetComponent <Rigidbody2D>();
        sfxMan  = FindObjectOfType <Sfx_manager> ();

        //if (!playerExists)
        //{
        //	playerExists = true;
        //	DontDestroyOnLoad (transform.gameObject);
        //} else {
        //	Destroy (gameObject);
        //}
    }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     sfxMan = FindObjectOfType <Sfx_manager> ();
 }