11 Scriptable Object Blackboard

This example shows you how to use a scriptable object Blackboard.

These files can be found in the /Examples/[example] and /Blackboards/Examples folders.

ScriptableObjectBlackboard.cs

using CrashKonijn.RabbitBlackboard.Contracts;
using UnityEngine;

namespace CrashKonijn.BlackboardPro.Blackboards.Examples
{
    [CreateAssetMenu(menuName = "Blackboard Pro/Examples/ScriptableObjectBlackboard")]
    public partial class ScriptableObjectBlackboard : BlackboardScriptable
    {
        private int startPlayerHealth = 100;
        private static int lowHealth(Signals.StartPlayerHealth startPlayerHealth) => (int) (startPlayerHealth.Value * 0.4f);
    }
}

ScriptableBehaviour.cs

Last updated