コード例 #1
0
 void SummonUnitSpawned(SummonController summonController, UnitEntity ent)
 {
     mTypeSummons[(int)ent.stats.type].UpdateSummonQueueAmount(-1);
 }
コード例 #2
0
    protected override void Awake()
    {
        base.Awake();

        mPlayer = GetComponentInChildren<Player>();

        mWeapon = GetComponentInChildren<Weapon>();
        mWeaponParam.sourceStat = mPlayer.stats;
        mWeaponParam.source = transform;

        attackSensor.unitAddRemoveCallback += OnAttackSensorUnitChange;

        mSummon = GetComponentInChildren<SummonController>();
        mSummon.summonedCallback += SummonUnitSpawned;
    }