Hello, guys, I want a sphere to get active if the main camera is activated, Can anyone help me, i tried using this,
using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour {
public gameobject camera;
public gameobject player;
void Update() {
if(camera.setactive(true)) (
player.setactive(true)
)