/// <summary> /// Called to start this script. It is critical when working with SNSSensor assets to call the /// sensor SetUp to make the current game object the origin /// /// Date Author Description /// 2017-11-02 BRB Initial Testing /// </summary> void Start() { target = GameObject.Find("Player").transform; myRenderer = GetComponent <Renderer>(); u = 0f; sensor = eye.GetComponent <SNSBase>(); }
void Start() { //Maybe change this to game object later foreach (string enemy in EnemyTags) { targets.Add(GameObject.FindWithTag(enemy).transform); } //myRenderer = GetComponent<Renderer>(); sensor = eye.GetComponent <SNSBase>(); tracker = GetComponent <ProjectileAttackTracker>(); }