Beispiel #1
0
    //=============================================================
    // メソッド
    //=============================================================

    public override void Enable(Chara owner, CustomStatusRate customStatusRate, EfficacyModule efficacyModule)
    {
        mpModule   = new ValueModule();
        foodModule = new ValueModule();
        foodModule.SetMaxValue(100f);
        base.Enable(owner, customStatusRate, efficacyModule);
        efficacyModule.AddModifiedEvent(UpdateRegeneEfficacy);
    }
Beispiel #2
0
 //=============================================================
 // メソッド
 //=============================================================
 public virtual void Awake()
 {
     rigidbdy2D          = GetComponent <Rigidbody2D>();
     animator            = GetComponent <Animator>();
     statusModule        = GetComponent <StatusModule>();
     baseSpriteTransform = transform.Find("BaseSprite");
     efficacyModule      = new EfficacyModule();
 }
Beispiel #3
0
    public virtual void Enable(Chara owner, CustomStatusRate customStatusRate, EfficacyModule efficacyModule)
    {
        this.owner          = owner;
        this.efficacyModule = efficacyModule;

        LoadMasterData();
        hpModule = new ValueModule();
        atk      = statusMasterData.ATK;
        def      = statusMasterData.DEF;
        InitStatus(customStatusRate);
    }
Beispiel #4
0
 public void RegisterPartyChara(PartyChara partyChara)
 {
     pcStatusModules.Add(partyChara.StatusModule as PartyCharaStatusModule);
     efficacyModule = partyChara.EfficacyModule;
     efficacyModule.AddModifiedEvent(UpdateEfficacyUIs);
 }