Error message with code? C#

I keep getting an error with my code:
error CS1501: No overload for method Attract' takes 0’ arguments
Here is my code:

using UnityEngine;
using System.Collections;

public class PlanetGravityEnter : MonoBehaviour {

public float gravity = -10f;

public void OnTriggerStay (Collider player)
	Attract ();

public void Attract(Transform body)
	Vector3 targetDir = (body.position - transform.position).normalized;
	Vector3 bodyUp = body.up;
	body.rotation = Quaternion.FromToRotation (bodyUp, targetDir) * body.rotation;
	body.rigidbody.AddForce (targetDir * gravity);


Thank you

You need to pass a Transform to your Attack since your Attack is declared as:

public void Attract(Transform body) {

So I guess you want to attract the player that enters the trigger. So inside on OnTriggerStay():

Attract (player.transform);

Attract is expecting a Transform so when you call it you need to pass it whatever transform you want. e.g.

Attract (player.transform);

I found that the problem was that i needed to have something in the brackets, in my case a (transform) :smiley: