private void Harvest(AiController aiController, SmartObject smartObject)
 {
     Debug.Log("Harvesting");
 }
 public override void Act(AiController aiController, SmartObject smartObject)
 {
     Harvest(aiController, smartObject);
 }
Exemplo n.º 3
0
 public override void Act(AiController aiController, SmartObject smartObject)
 {
 }
 public override void Initialize(SmartObject smartObject)
 {
     smartObject.AddSmartActionToCollection(GameManager.Instance.globalSpriteContainer.spriteCollection["Harvest"], OnClickHarvest);
 }
 public override void Act(AiController aiController, SmartObject smartObject)
 {
     Attack(aiController, smartObject);
 }
Exemplo n.º 6
0
 public override void Initialize(SmartObject smartObject)
 {
     smartObject.AddSmartActionToCollection(GameManager.Instance.globalSpriteContainer.spriteCollection["Shooting"], OnCliCkPracticeShooting);
 }
Exemplo n.º 7
0
 public override void Act(AiController aiController, SmartObject smartObject)
 {
     throw new System.NotImplementedException();
 }
 private void Attack(AiController aiController, SmartObject smartObject)
 {
     aiController.combatController.Attack(smartObject);
 }
Exemplo n.º 9
0
 private void Inspect(AiController aiController, SmartObject smartObject) //action logic, ai is the activator that is currently selected, smartObject is the object activated from a right click action (SmartAction)
 {
     Debug.Log("Inspecting");
 }
Exemplo n.º 10
0
 public override void Initialize(SmartObject smartObject)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 11
0
 private bool InRange(SmartObject smartObject)
 {
     return((smartObject.transform.position - transform.position).magnitude <= smartObject.stoppingDistance);
 }
Exemplo n.º 12
0
 public override void Act(AiController aiController, SmartObject smartObject)
 {
     PickUp(aiController, smartObject);
 }
Exemplo n.º 13
0
 private void PickUp(AiController aiController, SmartObject smartObject)
 {
     //event
     EventRelay.OnItemPickedUp(aiController, smartObject as Item);
 }
Exemplo n.º 14
0
 /// <summary>
 /// Adds all the required contextual right click actions for object.
 /// </summary>
 public abstract void Initialize(SmartObject smartObject);
Exemplo n.º 15
0
 /// <summary>
 /// Agent starts the action once he is in range of stopping distance.
 /// Stopping distance is defined in the SmartObject component. Can be set from Initialize method as well.
 /// </summary>
 /// <param name="aiController"></param>
 /// <param name="smartObject"></param>
 public abstract void Act(AiController aiController, SmartObject smartObject);