Exemple #1
0
    public override void SetUpActor()
    {
        if (SenseActorObjDic_ == null)
        {
            SenseActorObjDic_ = new Dictionary <SenseActorType, List <GameObject> >();
        }
        else
        {
            SenseActorObjDic_.Clear();
        }

        SenseActorObjDic_.Add(SenseActorType.SAT_Ambassdor, new List <GameObject>()
        {
            ambassador_.gameObject
        });

        for (int i = 0; i < guards_.Length; ++i)
        {
            if (SenseActorObjDic_.ContainsKey(SenseActorType.SAT_Guard))
            {
                SenseActorObjDic_[SenseActorType.SAT_Guard].Add(guards_[i].gameObject);
            }
            else
            {
                SenseActorObjDic_.Add(SenseActorType.SAT_Guard, new List <GameObject>()
                {
                    guards_[i].gameObject
                });
            }
            // guards_[i].SetTrigger("Move");
        }
        //  ambassador_.SetTrigger("Move");
    }
Exemple #2
0
    public override void SetUpActor()
    {
        if (SenseActorObjDic_ == null)
        {
            SenseActorObjDic_ = new Dictionary <SenseActorType, List <GameObject> >();
        }
        else
        {
            SenseActorObjDic_.Clear();
        }

        SenseActorObjDic_.Add(SenseActorType.SAT_Axe, new List <GameObject>()
        {
            pAxe_.gameObject
        });
        SenseActorObjDic_.Add(SenseActorType.SAT_Archor, new List <GameObject>()
        {
            pArchor_.gameObject
        });
        SenseActorObjDic_.Add(SenseActorType.SAT_Mage, new List <GameObject>()
        {
            pMage_.gameObject
        });
        SenseActorObjDic_.Add(SenseActorType.SAT_Sage, new List <GameObject>()
        {
            pSage_.gameObject
        });
        SenseActorObjDic_.Add(SenseActorType.SAT_Girl, new List <GameObject>()
        {
            pGirl_.gameObject
        });
    }
Exemple #3
0
    public override void SetUpActor()
    {
        if (SenseActorObjDic_ == null)
        {
            SenseActorObjDic_ = new Dictionary <SenseActorType, List <GameObject> >();
        }
        else
        {
            SenseActorObjDic_.Clear();
        }

        SenseActorObjDic_.Add(SenseActorType.SAT_VillageKing, new List <GameObject>()
        {
            cunzhang_.gameObject
        });
    }
Exemple #4
0
    public override void SetUpActor()
    {
        if (SenseActorObjDic_ == null)
        {
            SenseActorObjDic_ = new Dictionary <SenseActorType, List <GameObject> >();
        }
        else
        {
            SenseActorObjDic_.Clear();
        }

        SenseActorObjDic_.Add(SenseActorType.SAT_King, new List <GameObject>()
        {
            king_.gameObject
        });
        SenseActorObjDic_.Add(SenseActorType.SAT_Yingzi, new List <GameObject>()
        {
            yingzi_.gameObject
        });
    }