Beispiel #1
0
        protected virtual void Init()
        {
            this.Player = FindObjectOfType<PlayerComponent>();
            this.LevelSettings = FindObjectOfType<LevelSettings>();

            if (this.Player != null)
            {
                this.OnPlayerAdded(this.Player);
            }
            else
            {
                Debug.LogError("No player found!");
            }

            if (this.LevelSettings != null)
            {
                this.OnLevelSettingsChanged(this.LevelSettings);
            }
            else
            {
                Debug.LogError("No level settings found!");
            }
        }
Beispiel #2
0
 protected virtual void OnPlayerAdded(PlayerComponent player)
 {
 }