Пример #1
0
    public static void CreateHero()
    {
        GameObject o = Resources.Load("HeroFigure", typeof(GameObject)) as GameObject;
        hero = (Instantiate(o) as GameObject).GetComponent<Hero>();
        hero.transform.position = loc.startLocation;

        if (loc.locations.Length > 0)
        {
            hero.LookAtLoc(loc.locations[0]);
        }
    }