本文整理汇总了C#中Boss类的典型用法代码示例。如果您正苦于以下问题:C# Boss类的具体用法?C# Boss怎么用?C# Boss使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Boss类属于命名空间,在下文中一共展示了Boss类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Awake
void Awake()
{
boss = bossObj.GetComponent<Boss>();
gamecon = GameObject.FindGameObjectWithTag(Tags.gameController)
.GetComponent<GameController>();
exiting = false;
}
示例2: BossBehaviourIdle
public BossBehaviourIdle(Boss boss)
{
boss.animator.SetFloat("X", 0);
boss.animator.SetFloat("Y", 0);
stateTimer = 2.0f;
}
示例3: StyleRuns
public StyleRuns(Boss boss, string path, int edit, StyleRun[] runs)
{
Boss = boss;
Path = path;
Edit = edit;
Runs = runs;
}
示例4: ApplyBullet
protected override void ApplyBullet(Boss.BaseBoss enemy)
{
enemy.BossHit(damage, damage * 1f, direction, true);
SoundManager.PlaySFX("bullet_collision");
JumpToNextEnemy(enemy);
}
示例5: Start
public DialogueBox dialog; //JUSTIN
// Use this for initialization
void Start()
{
b = GetComponent<Boss>();
b.tiltEnabled = false;
attackQueue = new List<int>();
StartCoroutine(FlyIn());
}
示例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();
}
示例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"));
}
示例8: KrakenRegularState
public KrakenRegularState(Boss boss)
: base(boss)
{
waveAttackPercent = 15;
directAttackPercent = 60;
throwComboPercent = 25;
standandCooldown = 5f;
}
示例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);
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}