This is what i have:
using UnityEngine;
using System.Collections;
public class NewBehaviourScript : MonoBehaviour {
public GameObject HumanFollower;
public GameObject AlienFollower;
public GameObject RobotFollower;
public GameObject MonsterFollower;
private bool HumanFollowerStateGet;
private bool AlienFollowerStateGet;
private bool RobotFollowerStateGet;
private bool MonsterFollowerStateGet;
// Use this for initialization
void Start () {
HumanFollowerStateGet = HumanFollower.GetComponent <Follower> ().Following;
AlienFollowerStateGet = AlienFollower.GetComponent <Follower> ().Following;
}
// Update is called once per frame
void Update () {
if (HumanFollowerStateGet == true)
{
if (AlienFollowerStateGet == true)
{
AlienFollowerStateGet = false;
}
}
}
}
will this work if i do it for all of them? If not, how will I make it work?