示例#1
0
        public void Setup()
        {
            GlobalReference.GlobalValues = new GlobalValues();

            defaultValues = new Mock <IDefaultValues>();
            dice          = new Mock <IDice>();
            tagWrapper    = new Mock <ITagWrapper>();

            defaultValues.Setup(e => e.DiceForSpellLevel(1)).Returns(dice.Object);
            tagWrapper.Setup(e => e.WrapInTag(It.IsAny <string>(), TagType.Info)).Returns((string x, TagType y) => (x));

            GlobalReference.GlobalValues.DefaultValues = defaultValues.Object;
            GlobalReference.GlobalValues.TagWrapper    = tagWrapper.Object;

            magicMissle = new MagicMissle();
        }
示例#2
0
文件: Player.cs 项目: duiker2/Rougue
    private void Start()
    {
        InitializeEntity();
        SelfCast    = new Heal(gameObject);
        SelfCast2   = new PoisonCloud(gameObject);
        AutoTarget  = new Fireball(gameObject);
        AutoTarget2 = new Mudball(gameObject);
        PosTarget   = new MagicMissle(gameObject);

        anim      = GetComponent <Animator> ();
        curHealth = gameObject.GetComponent <Status> ().getHealth();
        blood     = transform.Find("Blood").GetComponent <ParticleSystem>();

        Dungeon = GameObject.Find("MapGenerator").GetComponent <MakeMap>();

        weapon = transform.Find("Weapon");

        playerGUI = new PlayerGUI(this);


        paused         = false;
        Time.timeScale = 1;
    }