Exemple #1
0
 // Use this for initialization
 public override void Start()
 {
     name  = "Repair Bridge";
     specs = GetComponentInParent <ClassSpecifications> ();
     map   = GameObject.FindGameObjectWithTag("Map").GetComponent <TileArrangement>();
     breakableBridgeMat = GetComponent <MeshRenderer>().material;
 }
 public new void Init(CharacterCharacter c, int rounds)
 {
     base.Init(c, rounds);
     specs            = c.type;
     justUsed         = false;
     remainingEnemies = this.CurrentEnemyCount();
 }
Exemple #3
0
 public new void Init(CharacterCharacter c, int rounds)
 {
     base.Init(c, rounds);
     specs         = c.type;
     justUsed      = false;
     allTeamMorale = UpdateTeamMorale();
 }
 void Awake()
 {
     team             = GetComponentInParent <Team> ();
     type             = GetComponentInChildren <ClassSpecifications> ();
     specialAbilities = GetComponentsInChildren <Ability> ();
     usedAbility      = false;
     activeEffects    = new List <ActiveEffect> ();
 }
 void Awake()
 {
     owner          = GetComponentInParent <CharacterCharacter> ();
     movement       = GetComponentInChildren <Mover> ();
     classAbilities = GetComponentsInChildren <Ability> ();
     nextLevel      = GetComponentInChildren <ClassSpecifications> ();
     passives       = new List <ContinuousEffect>();
 }
Exemple #6
0
 public new void Init(CharacterCharacter c, int rounds)
 {
     attackBonus = Dround(c.type.attack * (attackPercent));
     healthBonus = Dround(c.type.maximumHealth * (healthPercent));
     base.Init(c, rounds);
     lastTile = c.tile;
     NewTile();
     specs = c.type;
 }
Exemple #7
0
 // Use this for initialization
 public override void Start()
 {
     specs             = GetComponentInParent <ClassSpecifications> ();
     map               = GameObject.FindGameObjectWithTag("Map").GetComponent <TileArrangement>();
     targets           = new List <TileAttributes> ();
     charachterTargets = new List <CharacterCharacter> ();
     targetsAquired    = false;
     targetsToAquire   = numberOfTargets;
     GameObject.Destroy(GameObject.FindGameObjectWithTag("Ability Selector"));
     base.Start();
 }
Exemple #8
0
    void Awake()
    {
        moved = GetComponentInParent <ClassSpecifications> ();

        tileTypeTimes = new Dictionary <TileAttributes.TileType, double> ();
        tileTypeTimes.Add(TileAttributes.TileType.grass, grassTime);
        tileTypeTimes.Add(TileAttributes.TileType.hills, hillTime);
        tileTypeTimes.Add(TileAttributes.TileType.mountains, mountainTime);
        tileTypeTimes.Add(TileAttributes.TileType.trees, forestTime);
        tileTypeTimes.Add(TileAttributes.TileType.water, shallowWaterTime);
        tileTypeTimes.Add(TileAttributes.TileType.bridge, bridgeTime);
        tileTypeTimes.Add(TileAttributes.TileType.brokenBridge, brokenBridgeTime);
        tileTypeTimes.Add(TileAttributes.TileType.breakableBridge, breakableBridgeTime);
        tileTypeTimes.Add(TileAttributes.TileType.impassable, impassableTime);
        tileTypeTimes.Add(TileAttributes.TileType.stone, stoneTime);
    }
 // Use this for initialization
 public override void Start()
 {
     name  = "Inspiring Presence";
     specs = GetComponentInParent <ClassSpecifications> ();
     map   = GameObject.FindGameObjectWithTag("Map").GetComponent <TileArrangement>();
 }
Exemple #10
0
 // Use this for initialization
 public override void Start()
 {
     name  = "Whirlwind";
     specs = GetComponentInParent <ClassSpecifications> ();
 }