Esempio n. 1
0
        public void EnterGoal(GoalZone obj)
        {
            _enteringGoals.Add(obj);

            if (_enteringGoals.Count == _goals.Count)
            {
                _onCompleteGoal.OnNext(Unit.Default);
            }
        }
Esempio n. 2
0
 public void ExitGoal(GoalZone obj)
 {
     _enteringGoals.Remove(obj);
 }
Esempio n. 3
0
 public void RemoveGoal(GoalZone obj)
 {
     _goals.Remove(obj);
 }
Esempio n. 4
0
 public void AddGoal(GoalZone obj)
 {
     _goals.Add(obj);
 }