コード例 #1
0
ファイル: ConcussedEffect.cs プロジェクト: ren38/Scripts
    public override void setup(ObjectActor subject, ObjectInteractable source)
    {
        duration    = CONCUSSIONDURATION;
        effectName  = "Concussed";
        description = string.Format("Easily interrupted.");
        GameObjectObserver obs = subject.gameObject.AddComponent <GameObjectObserver>();

        obs.setupObserver(trigger);
        subject.rawHitSubscribe(obs);
        conditionID = 4;
        base.setup(subject, source);
    }