资源简介
看名字就知道,SALSA的随机眼程序,支持unity3d.这是最新版,程序内含MCS角色一键设置。
代码片段和文件信息
using UnityEngine;
using System.Collections;
using CrazyMinnow.SALSA; // Import SALSA from the CrazyMinnow namespace
using CrazyMinnow.SALSA.Examples;
/*
script usage instructions
CM_DialogSystem is a basic dialog system that demonstrates one approach to implementing Salsa into your game project.
1. Attach this script to an empty Gameobject called [Game Manager] or whatever game object you want to manage your dialog.
2. Set the [Npc Dialog] [Size] property to the number of NPC lines you wish to have on one or more NPC‘s.
3. link the following:
Npc: NPC Gameobject that has the Salsa component attached to it.
Npc Text: The text script of the NPC‘s line.
Npc Audio: The audio clip that Salsa will process for this NPC.
Player Response: If you want the player to have response options to this line set the
[Player Response] [Size] property to the number of Player line options you wish to have.
Each player response consists of the following:
Player: Player Gameobject that has the Salsa component attached to it.
Player Text: The text script of the Players‘s line.
Player Audio: The audio clip that Salsa will process for the Player.
NPC Dialog Index: The next [NPC Dialog] [Element] you wish to player
after this player response is selected. (Allows basic conversation branching)
End Dialog: When checked selecting this [Player Response] will end the
dialog after this [Player Audio] file finishes playing.
End Dialog: When checked the dialog will end after this [Npc Dialog] [Element]‘s
[Npc Audio] file finishes playing.
4. Be sure to Set the Gameobject with this script attached to it as a [BroadCast Receiver] of all Salsa enabled game actors
so this script will recieve [Salsa_OnTalkStatusChanged] events from Salsa‘s talk status changed events.
*/
namespace CrazyMinnow.SALSA.Examples
{
///
/// A properties class that defines a Salsa Gameobject and a Salsa type.
/// It‘s used in the GetSalsaType function of the CM_DialogSystem class
/// to store the Gameobject and Salsa type (Salsa2D or Salsa3D) that was
/// detected in the GetSalsaType function. This class assits in allowing the
/// CM_DialogSystem class to work on Salsa2D and Salsa3D powered characters.
///
public class CM_SalsaTypeAndobject
{
public Gameobject salsaGameobject;
public enum SalsaTypeOf { Salsa2D Salsa3D }
public SalsaTypeOf salsaType = SalsaTypeOf.Salsa2D;
}
///
/// A properties class that defines player dialog response details.
/// It‘s used in the GetSalsaType function of the CM_NPCDialog class.
///
[System.Serializable]
public class CM_PlayerResponse
{
public Gameobject player; // Player Gameobject that has the Salsa component attached
public string playerText; // Player dialog text to display in the GUI
public AudioClip playerAudio; // Player audio dialog to play
public int npcDialogIndex; // The NPC dialog index triggered by this player response
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 65536 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Editor\SALSAEditor.dll
文件 569 2018-11-28 22:15 Crazy Minnow Studio\SALSA with RandomEyes\Editor\SALSAEditor.dll.me
文件 193 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Editor.me
文件 68448 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Boxhead\boxhead.backOff.ogg
文件 417 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Boxhead\boxhead.backOff.ogg.me
文件 43528 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Boxhead\boxhead.sheLooksLikeMuffet.ogg
文件 417 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Boxhead\boxhead.sheLooksLikeMuffet.ogg.me
文件 193 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Boxhead.me
文件 136086 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Ethan\EthanEcho0.ogg
文件 417 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Ethan\EthanEcho0.ogg.me
文件 63517 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Ethan\EthanEcho1.ogg
文件 417 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Ethan\EthanEcho1.ogg.me
文件 209899 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Ethan\EthanEcho2.ogg
文件 417 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Ethan\EthanEcho2.ogg.me
文件 193 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Ethan.me
文件 17568 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Girl\girl.misc.dontEatYellowSnow.ogg
文件 417 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Girl\girl.misc.dontEatYellowSnow.ogg.me
文件 39563 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Girl\girl.misc.snapChatting.ogg
文件 417 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Girl\girl.misc.snapChatting.ogg.me
文件 18975 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Girl\girl.set01.ogg
文件 417 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Girl\girl.set01.ogg.me
文件 23533 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Girl\girl.set02.ogg
文件 417 2018-04-09 04:42 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Girl\girl.set02.ogg.me
文件 23612 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Girl\girl.set03.ogg
文件 417 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Girl\girl.set03.ogg.me
文件 193 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\Girl.me
文件 70098 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\MilitaryMan\mil.1moveThatJunk.ogg
文件 417 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\MilitaryMan\mil.1moveThatJunk.ogg.me
文件 43896 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\MilitaryMan\mil.2thinkFunnyHuh.ogg
文件 417 2018-04-09 04:43 Crazy Minnow Studio\SALSA with RandomEyes\Examples\Audio\DemoScenes\MilitaryMan\mil.2thinkFunnyHuh.ogg.me
............此处省略276个文件信息
- 上一篇:量子力学 曾谨言 卷II 2007
- 下一篇:华清远见内部高清文档资料
相关资源
- Unity3D坦克大战 源代码3D游戏开发
- unity简单的2D飞机大战
- Unity3D StarTrooper多人游戏源码(可运行
- ClassicalMechanics-Goldstein.pdf
- Unity3D官方地形包,TerrainAsset.unitypac
- introduction_to_robotics_mechanics_and_control
- Unity3D 坦克射击游戏完整工程文件
- computer organization and design 5th edition
- 超好用的公路创建插件RoadBuilder.zip
- Computer Organization and Design 5th 计算机组
- 树木与草地
- unity3d鸟与家禽动画模型
- MegaFiers_Mesh V3.36
- Video DownloadHelper Companion App 1.2.4.rar亲测
- unity3d 地形资源
- Introductory Quantum Mechanics
- Unity3d 5.x滚动小球完整项目 demo
- Computer.Organization.and.Design.4th.Edition
- Unity3D合金弹头游戏项目资源
- UNITY3D桂电校园漫游
- Unity小游戏【Roll a ball】源码231346
- NGUI Next-Gen UI v3.12.1 (Jun 29 2018)最新
- Socket For Unity3d
- Terrain To Mesh 1.46.unitypackage
- Unity 2019.4 中文离线文档(优化了打开
- 基于unity3D做的台球小游戏
- unity 动态粒子插件
- SteamVR.2.2.0.unitypackage
- Obi 5 --Obi Rope/Obi Cloth/Obi Fluid/Obi SoftB
- unity3D小游戏207251
评论
共有 条评论