// Use this for initialization void Start() { GameObject playerColliderObject = GameObject.FindWithTag("Player"); // allows us to pull LifeCheck Method from the player collider script if (playerColliderObject != null) { playerCollider = playerColliderObject.GetComponent<Player_Collider_Lv3>(); } }
// Use this for initialization void Start() { GameObject playerColliderObject = GameObject.FindWithTag("Player"); // allows us to pull LifeCheck Method from the player collider script if (playerColliderObject != null) { playerCollider = playerColliderObject.GetComponent <Player_Collider_Lv3>(); } }
// Use this for initialization void Start() { this._rigidbody2D = gameObject.GetComponent <Rigidbody2D> (); //referencing the rigidbody 2d and transform this._transform = gameObject.GetComponent <Transform> (); this._animator = gameObject.GetComponent <Animator> (); GameObject playerColliderObject = GameObject.FindWithTag("Player"); // allows us to pull Life Check Method from the player collider script if (playerColliderObject != null) { playerCollider = playerColliderObject.GetComponent <Player_Collider_Lv3>(); } }
// Use this for initialization void Start() { this._rigidbody2D = gameObject.GetComponent<Rigidbody2D> (); //referencing the rigidbody 2d and transform this._transform = gameObject.GetComponent<Transform> (); this._animator = gameObject.GetComponent<Animator> (); GameObject playerColliderObject = GameObject.FindWithTag("Player"); // allows us to pull Life Check Method from the player collider script if (playerColliderObject != null) { playerCollider = playerColliderObject.GetComponent<Player_Collider_Lv3>(); } }