Beispiel #1
0
    public void RespawnAgent(GameObject agent)
    {
        LandSpawnArea sa = agent.GetComponentInParent <LandSpawnArea>();

        if (sa != null)
        {
            sa.RespawnNPC(agent);
        }
    }
Beispiel #2
0
 public override void InitializeAgent()
 {
     base.InitializeAgent();
     currentMode         = AgentMode.exploring;
     currentGatherReward = startGatherReward;
     agentRB             = GetComponent <Rigidbody>();
     rayPer = GetComponent <RayPerception>();
     //myAcademy = myAcademyObj.GetComponent<CivAcademy>();
     myArea = GetComponentInParent <LandSpawnArea>();
 }