コード例 #1
0
        public void UpdateResearch()
        {
            if (_research == null)
            {
                return;
            }

            _research.Update();
            if (_research.IsDone())
            {
                Mutation newMutation = _research.Mutation;
                _research = null;
                if (OnResearchComplete != null)
                {
                    OnResearchComplete(this, newMutation);
                }
                AddMutation(newMutation);
            }
        }
コード例 #2
0
 public void BeginResearch(Mutation mutation)
 {
     _research = new MutationResearch(mutation);
 }