コード例 #1
0
 public override void Initialize(NPCEntity npc)
 {
     base.Initialize(npc);
     npc.MoveTo(npc.HostPlanet.PlanetBack);
     npc.OnReachedDestination?.Invoke();
     ChangeLayer();
 }
コード例 #2
0
 public override void Initialize(NPCEntity npc)
 {
     base.Initialize(npc);
     currentWaypointID = Random.Range(0, npc.HostPlanet.Waypoints.Count);
     npc.MoveTo(npc.HostPlanet.Waypoints[currentWaypointID]);
     Debug.Log("Wondering...");
 }
コード例 #3
0
 public override void Initialize(NPCEntity npc)
 {
     base.Initialize(npc);
     npc.MoveTo(PlayerController.Instance.transform);
     npc.View.SpeechBubble.ShowInfo(npc.DestinationPlanet.transform.name);
 }