Exemplo n.º 1
0
 public void PushTo(VoosActor actor)
 {
     string[] tags = joinedTags.Split(new char[] { ' ', ',', '\n' });
     tags = Array.FindAll(tags, tag => tag != "");
     actor.SetTags(tags);
     // HACK FOR CLONES
     actor.ApplyPropertiesToClones();
 }
    void OnSoundPicked(string sfxId)
    {
        string lastSfxId = actor.GetSfxId();

        undoStack.PushUndoForActor(
            actor,
            $"Set sound effect for {actor.GetDisplayName()}",
            actor =>
        {
            actor.SetSfxId(sfxId);
            actor.ApplyPropertiesToClones();
        },
            actor =>
        {
            actor.SetSfxId(lastSfxId);
            actor.ApplyPropertiesToClones();
        });
    }
Exemplo n.º 3
0
        public void PushTo(VoosActor actor)
        {
            Vector3 rotEuler = actor.GetRenderableRotation().eulerAngles;

            rotEuler.y = yaw;
            actor.SetRenderableRotation(Quaternion.Euler(rotEuler.x, rotEuler.y, rotEuler.z));
            actor.SetRenderableOffset(offset);
            // HACK FOR CLONES
            actor.ApplyPropertiesToClones();
        }
Exemplo n.º 4
0
    void ToggleHideInPlayMode(bool value)
    {
        if (actor == null)
        {
            return;
        }
        bool prevValue = actor.GetHideInPlayMode();

        undoStack.PushUndoForActor(
            actor,
            $"Set hide for {actor.GetDisplayName()}",
            actor =>
        {
            actor.SetHideInPlayMode(value);
            actor.ApplyPropertiesToClones();
        },
            actor =>
        {
            actor.SetHideInPlayMode(prevValue);
            actor.ApplyPropertiesToClones();
        });
    }
Exemplo n.º 5
0
 public void PushTo(VoosActor actor)
 {
     actor.SetDescription(description);
     // HACK FOR CLONES
     actor.ApplyPropertiesToClones();
 }
Exemplo n.º 6
0
 public void PushTo(VoosActor actor)
 {
     actor.SetDisplayName(name);
     // HACK FOR CLONES
     actor.ApplyPropertiesToClones();
 }
Exemplo n.º 7
0
 void RefreshClones()
 {
     actor.ApplyPropertiesToClones();
 }