public override void InitializeAgent() { m_Academy = FindObjectOfType <WallJumpAcademy>(); m_Configuration = Random.Range(0, 5); m_AgentRb = GetComponent <Rigidbody>(); m_ShortBlockRb = shortBlock.GetComponent <Rigidbody>(); m_SpawnAreaBounds = spawnArea.GetComponent <Collider>().bounds; m_GroundRenderer = ground.GetComponent <Renderer>(); m_GroundMaterial = m_GroundRenderer.material; spawnArea.SetActive(false); }
public override void InitializeAgent() { academy = FindObjectOfType <WallJumpAcademy>(); rayPer = GetComponent <RayPerception>(); configuration = Random.Range(0, 5); detectableObjects = new string[] { "wall", "goal", "block" }; agentRB = GetComponent <Rigidbody>(); shortBlockRB = shortBlock.GetComponent <Rigidbody>(); spawnAreaBounds = spawnArea.GetComponent <Collider>().bounds; groundRenderer = ground.GetComponent <Renderer>(); groundMaterial = groundRenderer.material; spawnArea.SetActive(false); }