I want to disable another objects sphere collider.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class APIJumpWirhGrav : MonoBehaviour
{
private SphereCollider OnTopOfPlayer;
void Start()
{
onTopOfPlayer = Player.GetComponent<SphereCollider>();
}
void Update()
{
if (Input.GetButtonDown("Fire1") && onTopOfPlayer == true)
{
????????GetComponent<SphereCollider>().enabled = false;???????
}
}
}