protected override void Start() { base.Start(); GameObject tempRef = Instantiate(thrallObject, transform.position, Quaternion.identity); thrallReference = tempRef.GetComponent <GeomancerThrall>(); thrallReference.MasterReference = this; }
protected override void Update() { base.Update(); if (TargetEntity == null) { TargetEntity = GameObject.FindGameObjectWithTag("Player").GetComponent <AttackableEntity>(); } if (ThrallReference == null) { GameObject tempRef = Instantiate(thrallObject, transform.position, Quaternion.identity); thrallReference = tempRef.GetComponent <GeomancerThrall>(); thrallReference.MasterReference = this; } }