コード例 #1
0
ファイル: Enemy.cs プロジェクト: jrand35/Ed-Edd-n-Eddy-RPG
	// Use this for initialization
	void Start () {
        stats.currentHP = stats.maxHP;
        stats.currentSP = stats.maxSP;

        //TODO: Change
        BattleBehavior = new BattleBehaviors.BattleEd(new Character());
	}
コード例 #2
0
    //private IList<BattlerAction> battlerActions;
	// Use this for initialization
	void Start () {
        Parent = gameObject;
        Inventory = new List<Item>();
        Item Jawbreaker = new Item();
        //TODO: These should all be initialized and stored in ItemDef subclasses instead of Item class
        //Use Linq to get quantity of a certain item in inventory
        Jawbreaker.ItemName = "Jawbreaker";
        Jawbreaker.Quantity = 2;
        Jawbreaker.ItemType = ItemType.Jawbreaker;
        Jawbreaker.ItemDef = new ItemJawbreaker(Jawbreaker);
        Inventory.Add(Jawbreaker);

        //anim = GetComponent<Animator>();
        //Indicate the attacks and special attacks the character can use
        switch (characterID)
        {
            case CharacterID.Ed:
                BattleBehavior = new BattleBehaviors.BattleEd(this);
                break;
        }
	}