Exemple #1
0
    public void PlaceTeamFightFlag(Vector3 location)
    {
        base.PlaceFightFlag(location);
        fightFlag.GetComponent <ParticleSystem>().Play();
        List <DaughterController> princesses = new List <DaughterController>();
        List <MoMController>      otherMoMs  = new List <MoMController>();

        otherMoMs = MoMPool.FindAll(f => f.isActive && f.teamID == teamID && f.unitID != unitID);
        if (daughters > 0)
        {
            princesses = DaughterPool.FindAll(f => f.isActive && f.teamID == teamID);
        }
        if (princesses.Count > 0)
        {
            for (int p = 0; p < princesses.Count; p++)
            {
                princesses[p].PlaceFightFlag(location);
            }
        }
        if (otherMoMs.Count > 0)
        {
            for (int p = 0; p < otherMoMs.Count; p++)
            {
                otherMoMs[p].PlaceFightFlag(location);
            }
        }
        isTeamFightFlagActive = true;
    }
Exemple #2
0
    public void RecallTeamFightFlag()
    {
        isTeamFightFlagActive = false;
        List <DaughterController> princesses = new List <DaughterController>();

        if (daughters > 0)
        {
            princesses = DaughterPool.FindAll(f => f.isActive && f.myMoM == this);
        }
        if (princesses.Count > 0)
        {
            for (int p = 0; p < princesses.Count; p++)
            {
                princesses[p].RecallFightFlag();
            }
        }
    }