public void FindStuff(GameObject ownerRef, OverworldBaseEnemy ownerScriptRef)
 {
     owner                  = ownerRef;
     ownerScript            = ownerScriptRef;
     boxCollider2D          = this.GetComponent <BoxCollider2D>();
     mainSensor             = ownerScript.Sensor.GetComponent <Sensor>();
     mainSensor.chaseSensor = this;
 }
Ejemplo n.º 2
0
 public void FindStuff(GameObject ownerRef, OverworldBaseEnemy ownerScriptRef)
 {
     owner         = ownerRef;
     ownerScript   = ownerScriptRef;
     boxCollider2D = this.GetComponent <BoxCollider2D>();
 }