public object Clone() { Tackle tackle = new Tackle(); tackle.unlocked = this.unlocked; return(tackle); }
public void GhostTypePokemonShouldNotTakeDamageFromPhysicalAttack() { IPokemon ghostTypePokemon = PokemonFactory.CreatePokemon <Gengar>(); IMove move = new Tackle(); Assert.True(TypeComparer.PokemonTypeDoesNotMakeContactWithMove(ghostTypePokemon?.Types, move)); }
void Start() { control = GetComponentInParent <EnemyControl>(); status = GetComponentInParent <EnemyStatus>(); tackle = gameObject.AddComponent <Tackle>(); tackle.isKnockBack = true; tackle.knockBackPower = status.knockBackPower; tackle.skillCaster = transform.parent.gameObject; tackle.damage = status.tackleDamage; }
public SpearToss() { arrow = new Arrow(); tackle = new Tackle(); }