コード例 #1
0
        public Samurai(Shogun boss, string name, int health, float cash) : base(name, health)
        {
            this.CashFlow = cash;

            // register Gettin paid to event
            boss.onPaymentDelivered += GettinPaid;
            this.onMelee            += WasAttacked;
        }
コード例 #2
0
 void Awake()
 {
     Tokugawa = new Shogun("Tokugawa", 100, Clan.Tokugawa);
     Musashi  = new Samurai(Tokugawa, "Musashi", 100, 0);
     Devon    = new Samurai(Tokugawa, "Devon", 100, 5);
 }