public override void Initialize() { m_AgentRb = GetComponent <Rigidbody>(); m_MyArea = area.GetComponent <PyramidArea>(); m_SwitchLogic = areaSwitch.GetComponent <PyramidSwitch>(); }