protected Actor Spawn(ActorSpawnParameter parameter, Vector3 position, Quaternion rotation) { var actor = parameter.Spawn(position, rotation, Layers.Id.Enemy); Broker.Global.Publish(SpawnedEnemyActor.Get(actor, this.gameObject)); return(actor); }
protected Actor Spawn(ActorSpawnParameter parameter, Transform transform) { return(this.Spawn(parameter, transform.position, transform.rotation)); }