當前位置: 首頁>>代碼示例>>C#>>正文


C# Boss類代碼示例

本文整理匯總了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;
 }
開發者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


注:本文中的Boss類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。