예제 #1
0
 // Use this for initialization
 void Start()
 {
     upgrades = upgrading.GetComponent<FactoryAddon>();
     player = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerMovement>();
     characterObjective = charr.GetComponent<CharacterObjectives>();
     objective = new KillObjective();
     characterObjective.SetObjective(objective);
     //   upgradeGUI.SetActive(false);
 }
예제 #2
0
 private ObjectiveController Initilize(Objective[] objs)
 {
     if (objs == null)
     {
         obj = new FakeObjectives(new List <Objective>());
     }
     else
     {
         obj = new FakeObjectives(objs.ToList());
     }
     return(new ObjectiveController(obj, null)
     {
         UserId = () => _userId
     });
 }
예제 #3
0
 public ObjectiveController(IObjectives obj, UserManager <ApplicationUser> userManager)
 {
     _objectives  = obj;
     _userManager = userManager;
 }
예제 #4
0
 public void RunObjective()
 {
     objective = new RunObjective();
     characterObjective.SetObjective(objective);
     Debug.Log("Run Objective");
 }
예제 #5
0
 public void KillObjective()
 {
     objective = new KillObjective();
     characterObjective.SetObjective(objective);
     Debug.Log("Kill Objective");
 }
 public void SetObjective(IObjectives newObjective)
 {
     objective = newObjective;
 }