public void setScript(GarenScript script) { player = script; totalDamage = 1.8f * player.getWeaponDamage(); }
public void setScript(GarenScript script) { player = script; }
public void setScript(GarenScript script) { player = script; totalDamage = player.getWeaponDamage() * 1.6f; }
public void trigger(GarenScript player) { player.awardHealth(healAmount); Destroy(gameObject); }
public void setPlayer(GarenScript player) { this.player = player; }
// Primarily function to be implemented by child classes. public void trigger(GarenScript player) { ; }
// Use this for initialization void Start() { dest = transform.position; motor = GetComponent(typeof(CharacterMotor)) as CharacterMotor; player = gameObject.GetComponentInChildren(typeof(GarenScript)) as GarenScript; }