本文整理汇总了C#中Boss类的典型用法代码示例。如果您正苦于以下问题:C# Boss类的具体用法?C# Boss怎么用?C# Boss使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Boss类属于命名空间,在下文中一共展示了Boss类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Awake
void Awake()
{
boss = bossObj.GetComponent<Boss>();
gamecon = GameObject.FindGameObjectWithTag(Tags.gameController)
.GetComponent<GameController>();
exiting = false;
}
开发者ID:rpfypust,项目名称:RealisticPerspective,代码行数:7,代码来源:PhoenixToTransition.cs
示例2: BossBehaviourIdle
public BossBehaviourIdle(Boss boss)
{
boss.animator.SetFloat("X", 0);
boss.animator.SetFloat("Y", 0);
stateTimer = 2.0f;
}
开发者ID:wjSimon,项目名称:GD1014_s3p,代码行数:7,代码来源:BossBehaviourIdle.cs
示例3: StyleRuns
public StyleRuns(Boss boss, string path, int edit, StyleRun[] runs)
{
Boss = boss;
Path = path;
Edit = edit;
Runs = runs;
}
开发者ID:andyhebear,项目名称:Continuum,代码行数:7,代码来源:StyleRuns.cs
示例4: ApplyBullet
protected override void ApplyBullet(Boss.BaseBoss enemy)
{
enemy.BossHit(damage, damage * 1f, direction, true);
SoundManager.PlaySFX("bullet_collision");
JumpToNextEnemy(enemy);
}
开发者ID:amidos2006,项目名称:CleanEmUp,代码行数:7,代码来源:XenaBullet.cs
示例5: Start
public DialogueBox dialog; //JUSTIN
// Use this for initialization
void Start()
{
b = GetComponent<Boss>();
b.tiltEnabled = false;
attackQueue = new List<int>();
StartCoroutine(FlyIn());
}
开发者ID:zachary-goodless,项目名称:Cull-the-Swarm,代码行数:10,代码来源:ShipPatterns.cs
示例6: DoFindFullNames
public string[] DoFindFullNames(Boss windowBoss, string typeName, int max)
{
if (typeName.Contains("."))
return new string[]{typeName};
Boss boss = ObjectModel.Create("DirectoryEditorPlugin");
var finder = boss.Get<IFindDirectoryEditor>();
boss = finder.GetDirectoryEditor(windowBoss);
if (boss == null)
throw new InvalidOperationException("Couldn't find a directory window associated with the text window.");
IEnumerable<string> names;
var database = boss.Get<IDatabase>();
using (Database db = database.GetDatabase())
{
string sql = string.Format(@"
SELECT root_name
FROM Types
WHERE name = '{0}'
LIMIT {1}", typeName, max);
string[][] rows = db.QueryRows(sql);
names = from r in rows select r[0];
}
return names.ToArray();
}
开发者ID:andyhebear,项目名称:Continuum,代码行数:27,代码来源:ResolveNamespace.cs
示例7: Instantiated
public void Instantiated(Boss boss)
{
m_boss = boss;
NSUserDefaults defaults = NSUserDefaults.standardUserDefaults();
m_showSpaces = defaults.boolForKey(NSString.Create("show spaces"));
m_showTabs = defaults.boolForKey(NSString.Create("show tabs"));
}
开发者ID:andyhebear,项目名称:Continuum,代码行数:8,代码来源:Whitespace.cs
示例8: KrakenRegularState
public KrakenRegularState(Boss boss)
: base(boss)
{
waveAttackPercent = 15;
directAttackPercent = 60;
throwComboPercent = 25;
standandCooldown = 5f;
}
开发者ID:etiens,项目名称:VikingQuest,代码行数:8,代码来源:KrakenRegularState.cs
示例9:
// called during fixed update in boss
void IBossBehavior.Update(Boss b) {
// calculate unit vector direction
Vector3 attackDirection = target.transform.position - b.transform.position;
attackDirection.Normalize ();
b.transform.Translate (attackVelocity * attackDirection);
}
开发者ID:xytan123,项目名称:eecs395-game,代码行数:9,代码来源:LineOfSightBossBehavior.cs
示例10: Start
//Create hp bars for players and bosses
// Use this for initialization
void Start()
{
player = FindObjectOfType<Player>(); //find player
enemy = GetComponent<Boss>();
moveController = GetComponent<MoveController>();
damageTextOffset = new Vector3(0, 2, 0);
currentHealth = maxhp; //+ player.getLevel()/3
Update_Maxhp();
}
开发者ID:DevelopersGuild,项目名称:Castle-Bashers,代码行数:11,代码来源:BossHealth.cs
示例11: Init
public virtual void Init(int type, int currentHP, int maxHP) {
this.type = type;
this.maxHP = maxHP;
this.currentHP = currentHP;
Transform bossTrans = MyPoolManager.Instance.Spawn(GetBossPrefabName(slotMachineScreen.gameType, type), transform);
boss = bossTrans.GetComponent<Boss>();
boss.Init();
UpdateHPBar();
}
开发者ID:markofevil3,项目名称:SlotMachine,代码行数:9,代码来源:BossManager.cs
示例12: ShortForm
public ShortForm(Boss boss, TextWriter writer)
{
m_boss = boss;
m_writer = writer;
var editor = m_boss.Get<IDirectoryEditor>();
m_addSpace = editor.AddSpace;
m_addBraceLine = editor.AddBraceLine;
}
开发者ID:andyhebear,项目名称:Continuum,代码行数:9,代码来源:ShortForm.cs
示例13: KrakenAttackState
public KrakenAttackState(Boss boss)
: base(StateIds.Attacking, boss)
{
NextStateIds.Add(StateIds.Idle);
NextStateIds.Add(StateIds.Stunned);
NextStateIds.Add (StateIds.Hurt);
random = new System.Random();
kraken = boss as Kraken;
}
开发者ID:etiens,项目名称:VikingQuest,代码行数:9,代码来源:KrakenAttackState.cs
示例14: Fight
/// <summary>
/// Simulates a fight between the wizard and the boss.
/// </summary>
/// <param name="spellSelector">A delegate to a method to use to select the next spell to conjure.</param>
/// <param name="difficulty">The difficulty to play with.</param>
/// <returns>
/// A <see cref="Tuple{T1, T2}"/> that returns whether the wizard won and the amount of mana spent by the wizard.
/// </returns>
internal static Tuple<bool, int> Fight(Func<Wizard, ICollection<string>, string> spellSelector, string difficulty)
{
Wizard wizard = new Wizard(spellSelector);
Boss boss = new Boss();
Player winner = Fight(wizard, boss, difficulty, (f, a) => { });
return Tuple.Create(winner == wizard, wizard.ManaSpent);
}
开发者ID:martincostello,项目名称:adventofcode,代码行数:17,代码来源:Day22.cs
示例15: Awake
void Awake()
{
boss = GetComponent<Boss> ();
Rifle = transform.GetChild (0).FindChild ("AWP").GetComponent<Weapon>();
Uzi = transform.GetChild (0).FindChild ("Uzi").GetComponent<Weapon>();
// Set default waypoint to go to
MovingTowardsWaypoint = 1;
}
开发者ID:TujAuS,项目名称:2Dplatformer,代码行数:9,代码来源:BossAI.cs
示例16: GetDatabasePath
public static string GetDatabasePath(Boss boss)
{
var editor = boss.Get<IDirectoryEditor>();
string name = Path.GetFileName(editor.Path);
string path = Paths.GetAssemblyDatabase(name);
return path;
}
开发者ID:andyhebear,项目名称:Continuum,代码行数:9,代码来源:Populate.cs
示例17: Start
// Use this for initialization
void Start()
{
//取得
shot_part = GameObject.Find ("shot_rota").GetComponent<shot_part8>();
gread = shot_part.gread;
boss_cs = GameObject.Find ("baby").GetComponent<Boss>();
boss_hp = boss_cs.HP;
heat_max = shot_part.heat_max;
heat = shot_part.heat;
}
开发者ID:BlackKeiichiro,项目名称:NewDensanProject,代码行数:11,代码来源:to_UI.cs
示例18: Instantiated
public void Instantiated(Boss boss)
{
m_boss = boss;
Thread thread = new Thread(this.DoComputeStyles);
thread.Name = "CSharpStyler.DoComputeStyles";
thread.IsBackground = true; // allow the app to quit even if the thread is still running
thread.Start();
Broadcaster.Register("parsed file", this);
}
开发者ID:andyhebear,项目名称:Continuum,代码行数:11,代码来源:CSharpStyler.cs
示例19: Map
public static BossSkillFactory Map(Boss owner)
{
switch (owner.Id)
{
case BossId.Radiation:
return BossRadiationSkillFactory._;
default:
Debug.LogError(LogMessages.EnumUndefined(owner.Id));
return null;
}
}
开发者ID:choihb,项目名称:snugdc-project-sprpg,代码行数:11,代码来源:BossSkillFactory.cs
示例20: Apply
public static Arena Apply(IHero hero)
{
if (!isBossDefeated)
{
Boss enemy = new Boss();
return new Arena(string.Format("Going for the {0}", BuildingName), new FightRules(1, 1), hero, enemy);
}
return null;
}
开发者ID:JamesJoyceTeam-TheNinjaGame,项目名称:NinjaRPG,代码行数:11,代码来源:DreamJob.cs
注:本文中的Boss类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论