Пример #1
0
    // Use this for initialization
    void Start()
    {
        bb = new BlackBoard();

        bb.Set <int>("testInt", 123);
        bb.Set <Vector2>("TestVector2", new Vector2());

        print(bb.Get <int>("testInt"));
        print(bb.Get <Vector2>("TestVector2"));
    }
Пример #2
0
	// Use this for initialization
	void Start () {
        bb = new BlackBoard();

        bb.Set<int>("testInt", 123);
        bb.Set<Vector2>("TestVector2", new Vector2());

        print(bb.Get<int>("testInt"));
        print(bb.Get<Vector2>("TestVector2"));

    }
 // Token: 0x0600145C RID: 5212 RVA: 0x00021728 File Offset: 0x00020728
 protected override void OnMessage(OnFinalStrike message)
 {
     foreach (InternalBlackboardSlot internalBlackboardSlot in this.slots)
     {
         BlackBoard.Get().Change(internalBlackboardSlot.Channel, internalBlackboardSlot.BlackboardKey);
     }
 }
    bool isCloseToPlayer()
    {
        GameObject player = Memory.Get <GameObject>("Player");

        if (Vector3.Distance(gameObject.transform.position, player.transform.position) < 2)
        {
            return(true);
        }
        return(false);
    }
Пример #5
0
        // Token: 0x06001458 RID: 5208 RVA: 0x00021680 File Offset: 0x00020680
        protected internal override void Execute(ActivityExecutionContext context)
        {
            List <int> list = new List <int>();

            for (gameplay gameplay = base.Event.EventDef; gameplay != null; gameplay = gameplay.Parent)
            {
                uint num = gameplay.Num_BlackBoardMap();
                for (uint num2 = 0u; num2 < num; num2 += 1u)
                {
                    BlackBoardSlot blackBoardSlot = gameplay.BlackBoardMap(num2);
                    uint           mBits          = blackBoardSlot.mFlags.mBits;
                    if ((mBits & this.flags) != 0u)
                    {
                        BlackBoardChannel mChannel = blackBoardSlot.mChannel;
                        if (!list.Contains((int)mChannel))
                        {
                            BlackBoard.Get().Change(mChannel, blackBoardSlot.mBlackBoardKey.GetKey());
                            list.Add((int)mChannel);
                        }
                    }
                }
            }
        }
Пример #6
0
 // Token: 0x0600120C RID: 4620 RVA: 0x0001A18B File Offset: 0x0001918B
 protected internal override void Execute(ActivityExecutionContext context)
 {
     this.BlackboardKey.Value = BlackBoard.Get().GetCurrentKey(this.channel);
 }
Пример #7
0
 // Token: 0x06001213 RID: 4627 RVA: 0x0001A202 File Offset: 0x00019202
 protected internal override void Execute(ActivityExecutionContext context)
 {
     BlackBoard.Get().Change(this.channel, this.blackboardKey);
 }