Exemplo n.º 1
0
	private Animator anim;						// Reference to the Animator on the player


	void Awake ()
	{
		// Setting up references.
		playerControltest3d = GetComponent<PlayerControltest3d>();
		//healthBar = GameObject.Find("HealthBar").GetComponent<SpriteRenderer>();
		anim = GetComponent<Animator>();

		// Getting the intial scale of the healthbar (whilst the player has full health).
		//healthScale = healthBar.transform.localScale;
	}
Exemplo n.º 2
0
    private Animator anim;                                      // Reference to the Animator on the player


    void Awake()
    {
        // Setting up references.
        playerControltest3d = GetComponent <PlayerControltest3d>();
        //healthBar = GameObject.Find("HealthBar").GetComponent<SpriteRenderer>();
        anim = GetComponent <Animator>();

        // Getting the intial scale of the healthbar (whilst the player has full health).
        //healthScale = healthBar.transform.localScale;
    }
Exemplo n.º 3
0
 void Awake()
 {
     // Setting up the references.
     //anim = transform.root.gameObject.GetComponent<Animator>();
     playerCtrl = transform.root.GetComponent <PlayerControltest3d>();
 }
Exemplo n.º 4
0
 void Awake()
 {
     playerCtrl = transform.root.GetComponent <PlayerControltest3d>();
 }
Exemplo n.º 5
0
	void Awake()
	{
		// Setting up the references.
		//anim = transform.root.gameObject.GetComponent<Animator>();
		playerCtrl = transform.root.GetComponent<PlayerControltest3d>();
	}
Exemplo n.º 6
0
	void Awake()
	{
		playerCtrl = transform.root.GetComponent<PlayerControltest3d>();
	}