예제 #1
0
    // methods
    public GameObject CreateGameObject(string name, string appearance)
    {
        GameObject obj = ( GameObject )Instantiate(Resources.Load(Common.AGENT_PREFAB));

        obj.name = name;
        LoadAppearance la = obj.GetComponent <LoadAppearance>();

        la.SetAppearance(appearance);
        return(obj);
    }
예제 #2
0
    // Awake
    public void Start()
    {
        LoadAppearance la = GetComponent <LoadAppearance>();

        la.SetAppearance("innova/demos/appearance/AppPlayer");
    }