// Add a minion to the player public void AddMinion(Minion minion, bool teleport = true) { #if DEBUG Debug.Log ("One minion with color " + minion.color + " added to the player"); #endif minion.name = "Minion " + minion.color + " " + (this._minions.Count+1); minion.anchor = this.transform; minion.transform.SetParent (this.transform.parent.transform); minion.setMinionOffset (this.GetCountMinions (MinionColor.ANY)); Vector3 position = this.transform.position + Game.instance.mapManager.map.tiles [this.tileIndex].size / 2.5f * minion.offsetPosition;; if (teleport == true) { minion.transform.position = position; } minion.targetPosition = position; this._minions.Add (minion); }