private void InitializeBlackboards(BTAgent agent) { agent.AddBlackboard(new TestBlackboard { AgentName = this.gameObject.name, TestInt = 100 }); }
private void InitializeBlackboards(BTAgent agent) { Debug.Log("Initializing Blackboards"); m_time = agent.AddBlackboard(new TimeBlackboard { DeltaTime = Time.deltaTime, UnscaledDeltaTime = Time.unscaledDeltaTime }); m_transform = agent.AddBlackboard(new TransformBlackboard { Position = transform.position, Rotation = transform.rotation, Scale = transform.lossyScale }); }