本文整理汇总了C#中Card.SetIsVanguard方法的典型用法代码示例。如果您正苦于以下问题:C# Card.SetIsVanguard方法的具体用法?C# Card.SetIsVanguard怎么用?C# Card.SetIsVanguard使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Card
的用法示例。
在下文中一共展示了Card.SetIsVanguard方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Ride
public void Ride(Card card)
{
if(Soul.Count > 0)
Soul[Soul.Count - 1].SetIsVanguard(false);
Soul.Add (card);
card.pos = fieldPositions.ENEMY_VANGUARD;
card._Coord = CardCoord.ENEMY_FIELD;
card.SetIsVanguard(true);
Vanguard = card;
for(int i = 0; i < Soul.Count - 1; i++)
{
Soul[i].GetGameObject().transform.position = fieldInfo.GetPosition((int)EnemyFieldPosition.VANGUARD) + delta * i;
}
Vector3 newPosition = fieldInfo.GetPosition((int)EnemyFieldPosition.VANGUARD) + delta * (Soul.Count - 1);
Vanguard.TurnUp();
Vanguard.MoveAndRotate(newPosition, fieldInfo.GetCardRotation());
//Vanguard.GetGameObject().transform.eulerAngles = fieldInfo.GetCardRotation();
VanguardPower.text = card.GetPower() + "";
CallAnimation(card, newPosition);
}
示例2: Ride
public void Ride(Card card, bool bActiveEvents = true)
{
_Game.SendGameChatMessage(card.name + ", Ride!", ChatTab.GAME);
//Reseting current status.
ResetCard(card);
if(Soul.Count > 0)
{
Soul[Soul.Count - 1].SetIsVanguard(false);
Soul[Soul.Count - 1]._Coord = CardCoord.SOUL;
lastVanguard = Soul[Soul.Count - 1];
}
Soul.Add (card);
card._Coord = CardCoord.FIELD;
card.SetIsVanguard(true);
Vanguard = card;
//Vanguard.GetGameObject().transform.position = fieldInfo.GetPosition((int)fieldPositions.VANGUARD_CIRCLE) + delta * (Soul.Count - 1);
//Vanguard.GetGameObject().transform.eulerAngles = fieldInfo.GetCardRotation();
Vanguard.MoveAndRotate(fieldInfo.GetPosition((int)fieldPositions.VANGUARD_CIRCLE) + delta * (Soul.Count - 1), fieldInfo.GetCardRotation());
VanguardPower.text = card.GetPower() + "";
card.pos = fieldPositions.VANGUARD_CIRCLE;
CallAnimation(card);
FixSoulPosition();
if(Soul.Count > 1 && bActiveEvents)
{
Soul[Soul.Count - 2].CheckAbilities(CardState.RideAboveIt);
Soul[Soul.Count - 2].CheckAbilities(CardState.LeaveField);
}
CheckAbilitiesDrop(CardState.DropZone_Ride);
CheckAbilitiesSoul(CardState.Soul_Ride);
if(bActiveEvents)
{
CheckAbilitiesExcept(card.pos, CardState.Ride_NotMe, card);
card.CheckAbilities(CardState.Ride);
}
}