void Start() { isJumping = false; canControl = true; //isShootReady = false; m_Rigid = GetComponent <Rigidbody2D>(); m_Collider = GetComponent <BoxCollider2D>(); m_Joint = JointPosition.GetComponent <FixedJoint2D>(); cannon = JointPosition.GetComponent <ObjectPrefab_CannonHead>(); CharacterAnimation.OnThrow = ThrowHead; CharacterAnimation.OnJump = Jump; sideContactFilter = new ContactFilter2D { layerMask = LayerMask.GetMask("Default", "Platform", "Interactable"), useLayerMask = true, useTriggers = false, }; bottomContactFilter = new ContactFilter2D { layerMask = LayerMask.GetMask("Default", "Platform", "Interactable", "OneWayPlatform"), useLayerMask = true, useTriggers = false, }; }