예제 #1
0
    protected ActorModel GetModel(int index, ExteriorArithmeticUnit exteriorUnit)
    {
        ActorModel actorModel = ModelPool.Instance.Get(exteriorUnit.FinalModelID);

        actorModel.ModelType  = ActorModelType.UI;
        actorModel.ModelLayer = "NPC";
        actorModel.set_name(index.ToString());
        actorModel.get_transform().set_position(new Vector3((float)(-1000 * (index + 1)), 1000f, 0f));
        actorModel.EquipOn(exteriorUnit.FinalWeaponID, exteriorUnit.FinalWeaponGogok);
        actorModel.EquipOn(exteriorUnit.FinalClothesID, 0);
        actorModel.EquipWingOn(exteriorUnit.FinalWingID);
        LayerSystem.SetGameObjectLayer(actorModel.get_gameObject(), "NPC", 1);
        actorModel.PreciseSetAction("idle_city");
        return(actorModel);
    }
예제 #2
0
    public static ActorModel GetModel(int wingModelId)
    {
        ActorModel actorModel = ModelPool.Instance.Get(EntityWorld.Instance.EntSelf.ModelID);

        actorModel.ModelType  = ActorModelType.UI;
        actorModel.ModelLayer = "NPC";
        float num = (float)(-1000 * (WingGlobal.models.get_Count() + 1));

        actorModel.get_transform().set_position(new Vector3(num, 0f));
        actorModel.EquipOn(EntityWorld.Instance.EntSelf.EquipCustomizationer.GetIdOfWeapon(), 0);
        actorModel.EquipOn(EntityWorld.Instance.EntSelf.EquipCustomizationer.GetIdOfClothes(), 0);
        actorModel.EquipWingOn(wingModelId);
        LayerSystem.SetGameObjectLayer(actorModel.get_gameObject(), "NPC", 1);
        actorModel.ShowSelf(true);
        return(actorModel);
    }