コード例 #1
0
    // Use this for initialization
    void Start()
    {
        eai = this.GetComponent <HeavyAI> ();
        sc  = GameObject.FindGameObjectWithTag("GameController").GetComponent <SpriteContainer>();

        ewc     = this.GetComponent <HeavyAttack> ();
        legsSpr = sc.getPlayerLegs();
    }
コード例 #2
0
 void Start()
 {
     allowInput         = true;
     lightAttackClass   = GetComponent <LightAttack>();
     mediumAttackClass  = GetComponent <MediumAttack>();
     heavyAttackClass   = GetComponent <HeavyAttack>();
     playerDefenseClass = GetComponent <PlayerDefense>();
     playerDashClass    = GetComponent <PlayerDash>();
 }
コード例 #3
0
ファイル: MeleeClass.cs プロジェクト: ooopn/Project-Survive
    public override void setupClass()
    {
        //Set up offensive Abilities
        offensiveAbilityPool = new Ability[1];

        offensiveAbilityPool[0] = new DashStrike();

        //Set up defensive Abilities
        defensiveAbilityPool = new Ability[2];

        defensiveAbilityPool[0] = new DodgeRoll();
        defensiveAbilityPool[1] = new Parry();

        //Set up basic and heavy attacks
        basicAttack = new BasicAttack();
        heavyAttack = new HeavyAttack();
    }
コード例 #4
0
    public override void setupClass()
    {
        //Set up offensive Abilities
        offensiveAbilityPool = new Ability[2];

        offensiveAbilityPool[0] = new LanceShot();
        offensiveAbilityPool[1] = new RicochetShot();

        //Set up defensive Abilities
        defensiveAbilityPool = new Ability[1];

        defensiveAbilityPool[0] = new DodgeRoll();

        //Set up basic and heavy attacks
        basicAttack = new BasicShoot();
        heavyAttack = new HeavyAttack();
    }