void Start() { // if (isMine) { // PlayerPrefs.SetInt ("OwnerID", photonView.viewID); // print (gameObject.name + " is mine"); // } GetComponent <FlagHandling> ().isAI = true; atcpro = GetComponent <AttackedProperties> (); ailog = GetComponent <AILogic> (); atcpro.isAI = true; // InvokeRepeating ("AIRandomMove", 0f, 2f); seeker = GetComponent <Seeker>(); rb = GetComponent <Rigidbody2D>(); StartCoroutine("CheckError"); if (target == null) { //Debug.LogError ("No Player found? PANIC!"); return; } }