예제 #1
0
파일: UnitManager.cs 프로젝트: pernjie/hero
 void Awake()
 {
     city            = FindObjectOfType <City> ();
     leftPanel       = FindObjectOfType <LeftPanel> ();
     breedingManager = FindObjectOfType <BreedingManager> ();
     crimeManager    = FindObjectOfType <CrimeManager> ();
 }
예제 #2
0
    public void Initialise(Hero hero, Tile tile)
    {
        base.Initialise(tile, hero.movementDelay);
        crimeManager = FindObjectOfType <CrimeManager> ();
        unitManager  = FindObjectOfType <UnitManager> ();

        this.hero = hero;
        heroState = HeroState.Patrol;
    }
예제 #3
0
    public void Initialise(Villain villain, Tile tile)
    {
        base.Initialise(tile, villain.movementDelay);
        crimeManager = FindObjectOfType <CrimeManager> ();
        unitManager  = FindObjectOfType <UnitManager> ();
        this.villain = villain;

        villainState = VillainState.Planning;
    }
예제 #4
0
파일: City.cs 프로젝트: pernjie/hero
 void Awake()
 {
     crimeManager = FindObjectOfType <CrimeManager> ();
 }