GentleMoa / S6_BountyHunt

A sixth semester student project by Felix Venne, student of the "Expanded Realities" course of studies at the h-da Hoschule Darmstadt.
0 stars 0 forks source link

Event kann nur links von += oder -= stehen (es sei denn, es wird innerhalb des Typs "EventOriginScript" verwendet) #22

Closed GentleMoa closed 2 years ago

GentleMoa commented 2 years ago

This problem appears when trying to trigger an event that was initialized inside the "GameManager" class as a "public event Action" from another class. In another class you can only subscribe / unsubscribe function to / from that event but you cannot trigger the event itself.

--> This means that all the conditions need be to checked in the GameManager script and then the event is triggered there.