Beispiel #1
0
 public PatternAI(PatternAIData data)
 {
     for (int i = 0; i < data.Pattern.pattern.Length; i++)
     {
         pattern.Enqueue(data.Pattern.pattern[i]);
     }
     NotificationCenter.AddListener <ActionResultNotification>(OnActionResultNotification);
 }
Beispiel #2
0
 private void Start()
 {
     NotificationCenter.AddListener <StatChange> (OnStatChange);
 }
 public ProjectileAI()
 {
     direction = new Vector2Int(1, 0);
     NotificationCenter.AddListener <ActionResultNotification>(OnActionResultNotification);
 }
Beispiel #4
0
 public void StartListeningEventsFrom(NotificationCenter notificationCenter)
 {
     notificationCenter.AddListener(GameEvents.coordinateOccupied, AddOccupiedCoordinate);
     notificationCenter.AddListener(GameEvents.coordinateDisoccupied, RemoveOccupiedCoordinate);
 }