private Rigidbody2D playerRB;           // rigidbody attached to the player

    // Use this for initialization
    void Start()
    {
        dog         = FindObjectOfType <SquishyHealthManager>();
        playerInput = player.GetComponent <PlayerController2D>();
        playerRB    = player.GetComponent <Rigidbody2D>();
    }
Exemple #2
0
 void Start()
 {
     player = FindObjectOfType <PlayerController2D>();
     dog    = FindObjectOfType <SquishyHealthManager>();
 }