Example #1
0
        protected override void Awake()
        {
            base.Awake();

            model = GetComponentInParent <TeammateModel>();

            TeammateController.TeammateSelected += OnTeammateSelected;
            IsVisible = false;
        }
Example #2
0
 private void OnTeammateSelected(TeammateModel teammate)
 {
     IsVisible = model == teammate;
 }
Example #3
0
 public void SelectTeammate(TeammateModel teammate)
 {
     currentTeammate = teammate;
     TeammateSelected?.Invoke(currentTeammate);
 }