Ejemplo n.º 1
0
    void Start()
    {
        //	viewMesh = new Mesh ();
        //	viewMesh.name = "View Mesh";
        //	viewMeshFilter.mesh = viewMesh;

        anvilHuman = GetComponent <AnvilHuman>();

        //This will call the function every .05f seconds
        //StartCoroutine ("FindTargetsWithDelay", .05f);
    }
Ejemplo n.º 2
0
    private void FindSeniorAgentInFaction()
    {
        AnvilHuman        highestRankingHuman;
        List <AnvilAgent> justHumans = new List <AnvilAgent>();

        foreach (AnvilAgent thisAgent in factionAgentList)
        {
            if (thisAgent is AnvilHuman)
            {
                justHumans.Add(thisAgent);
            }
        }
        highestRankingHuman = justHumans[0] as AnvilHuman;

        foreach (AnvilHuman thisHuman in justHumans)
        {
            if (thisHuman.getRankIndex() > highestRankingHuman.getRankIndex())
            {
                highestRankingHuman = thisHuman;
            }
        }
        FactionLead = highestRankingHuman;
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     anvilHuman = GetComponent <AnvilHuman>();
     animator   = GetComponent <Animator>();
 }