// 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(); }
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>(); }
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; }
// 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(); }
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>(); }
// Use this for initialization public override void Start() { name = "Whirlwind"; specs = GetComponentInParent <ClassSpecifications> (); }